enum PlaceOS::Api::MQTT::MqttAcl

Overview

Mosquitto MQTT broker accepts a flag enum for its ACL. Source: https://github.com/iegomez/mosquitto-go-auth/blob/master/backends/constants/constants.go

Defined in:

placeos-rest-api/controllers/mqtt.cr

Enum Members

Read = 1
Write = 2
Subscribe = 4
Deny = 16

this is 0x11 on the go-auth side but that wouldn't work with flags properly it doesn't make much sense that MQTT would be checking deny access either so I think this is safe to do.

None = 0
All = 23

Instance Method Summary

Instance Method Detail

def deny? #

Returns true if this enum value contains Deny


[View source]
def none? #

[View source]
def read? #

Returns true if this enum value contains Read


[View source]
def subscribe? #

Returns true if this enum value contains Subscribe


[View source]
def write? #

Returns true if this enum value contains Write


[View source]