Sha256: a4923b2131e6d4bef640bb633e18100df40f50161cd6a458fab4080620215ae2
Contents?: true
Size: 1.15 KB
Versions: 2
Compression:
Stored size: 1.15 KB
Contents
# frozen_string_literal: true module DjiMqttConnect module Thing::Product # https://developer.dji.com/doc/cloud-api-tutorial/en/api-reference/dock-to-cloud/mqtt/dock/dock2/config.html#get-configuration class ConfigRequestsReplyMessage < RequestsReplyMessage def self.build_for(config_request_message, data:) new( _method: config_request_message._method, data: data, tid: config_request_message.tid, bid: config_request_message.bid, timestamp: current_timestamp, gateway: config_request_message.gateway ) end # Gateway is included in the documentation, but not in any other request reply messages attribute :gateway, Types::SerialNumber attribute :_method, Types::String.enum("config") attribute :data do attribute :ntp_server_host, Types::String # If this field is not included in the request, the default NTP port number is 123 attribute? :ntp_server_port, Types::Integer attribute :app_id, Types::String attribute :app_key, Types::String attribute :app_license, Types::String end end end end
Version data entries
2 entries across 2 versions & 1 rubygems