# frozen_string_literal: true module DjiMqttConnect module Thing::Product class StateReplyTopicRepository < TopicRepository # Publishes a message to gateway_sn on the "thing/product/+/state_reply" topic. def publish_to_device(gateway_sn, state_reply_message) publish_to_topic( "thing/product/#{gateway_sn}/state_reply", state_reply_message, marshal: StateReplyMarshal ) end end end end