Class: MqttMessageEvent
Instance Attribute Summary collapse
-
#data ⇒ String
readonly
The MQTT message, as a string.
-
#topic ⇒ String
readonly
The topic this MQTT message was sent on.
Attributes inherited from Event
Instance Method Summary collapse
-
#mqtt_message? ⇒ true
Is this an MQTT message?.
Methods inherited from Event
Instance Attribute Details
#data ⇒ String (readonly)
Returns the MQTT message, as a string
6 7 8 |
# File 'src/events/mqtt_message_event.rb', line 6 def data @data end |
#topic ⇒ String (readonly)
Returns the topic this MQTT message was sent on
3 4 5 |
# File 'src/events/mqtt_message_event.rb', line 3 def topic @topic end |
Instance Method Details
#mqtt_message? ⇒ true
Is this an MQTT message?
19 20 21 |
# File 'src/events/mqtt_message_event.rb', line 19 def true end |