Sha256: 492a6f63d042f3d93ed83c54dfd5e11887e6e300d3574a4b10b6b5efe9c9f57c

Contents?: true

Size: 1 KB

Versions: 2

Compression:

Stored size: 1 KB

Contents

# frozen_string_literal: true

module DjiMqttConnect
  module Sys::Product
    class UpdateTopoStatusMessage < StatusMessage
      attribute :data do
        attribute? :domain, Types::DeviceDomain
        attribute :type, Types::DeviceType
        attribute :sub_type, Types::DeviceSubType
        attribute :device_secret, Types::String
        attribute :nonce, Types::String

        attribute? :version, Types::Integer
        attribute? :thing_version, Types::String # dock contains thing_version instead of version

        attribute :sub_devices, Types::Array do
          attribute :sn, Types::SerialNumber
          attribute? :domain, Types::DeviceDomain
          attribute :type, Types::DeviceType
          attribute :sub_type, Types::DeviceSubType
          attribute :index,	Types::String
          attribute :device_secret, Types::String
          attribute :nonce, Types::String
          attribute? :version, Types::Integer

          alias_method :serial_number, :sn
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dji_mqtt_connect-0.1.25.1 lib/dji_mqtt_connect/messages/sys/product/status/update_topo.rb
dji_mqtt_connect-0.1.25 lib/dji_mqtt_connect/messages/sys/product/status/update_topo.rb