Class: DjiMqttConnect::Thing::Product::EventsReplyTopicRepository
- Inherits:
-
DjiMqttConnect::TopicRepository
- Object
- DjiMqttConnect::TopicRepository
- DjiMqttConnect::Thing::Product::EventsReplyTopicRepository
- Defined in:
- lib/dji_mqtt_connect/topics/thing/product/events_reply.rb
Instance Method Summary collapse
-
#publish_to_device(gateway_sn, events_reply_message) ⇒ Object
Publishes a message to gateway_sn on the “thing/product/+/events_reply” topic.
Methods inherited from DjiMqttConnect::TopicRepository
Constructor Details
This class inherits a constructor from DjiMqttConnect::TopicRepository
Instance Method Details
#publish_to_device(gateway_sn, events_reply_message) ⇒ Object
Publishes a message to gateway_sn on the “thing/product/+/events_reply” topic.
7 8 9 10 11 12 13 |
# File 'lib/dji_mqtt_connect/topics/thing/product/events_reply.rb', line 7 def publish_to_device(gateway_sn, ) publish_to_topic( "thing/product/#{gateway_sn}/events_reply", , marshal: EventsReplyMarshal ) end |