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