Sha256: a8d0e3f94f080d5e1e671ef2f7aff4d2e2c172ab16ba2bb35c2b0c179c627774
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 KB
Contents
# frozen_string_literal: true module DjiMqttConnect # Factories for building example messages # Do not include this in your production code module Factories def build_device_online_update_topo_message message_data = { type: 98, sub_type: 0, device_secret: "secret", nonce: "nonce", version: 1, sub_devices: [ { sn: "drone001", type: 116, sub_type: 0, index: "A", device_secret: "secret", nonce: "nonce", version: 1 } ] } Sys::Product::UpdateTopoStatusMessage.new( _method: "update_topo", tid: "12345678-1234-1234-1234-A00000000001", bid: "12345678-1234-1234-1234-B00000000001", timestamp: 1234567890123, data: message_data, _data: message_data.deep_stringify_keys ) end def build_update_topo_status_reply_message Sys::Product::UpdateTopoStatusReplyMessage.new( _method: "update_topo", tid: "3093aad5-bb98-5026-685a-cea540eb9267", bid: "479533e0-cb01-933c-3758-22f2a82abeb8", timestamp: 1679380233000, data: { result: 0 } ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dji_mqtt_connect-0.1.0 | lib/dji_mqtt_connect/factories.rb |