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.crEnum 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
-
#deny?
Returns
true
if this enum value containsDeny
- #none?
-
#read?
Returns
true
if this enum value containsRead
-
#subscribe?
Returns
true
if this enum value containsSubscribe
-
#write?
Returns
true
if this enum value containsWrite