dji_mqtt_connect 0.1.22 → 0.1.22.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/dji_mqtt_connect/factories.rb +18 -0
- data/lib/dji_mqtt_connect/messages/thing/product/events/offline_map_sync_progress.rb +15 -0
- data/lib/dji_mqtt_connect/messages/thing/product/events_reply_message.rb +2 -1
- data/lib/dji_mqtt_connect/version.rb +1 -1
- data/lib/dji_mqtt_connect.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 904fc18520b674341b8c69c048a1a15c13d9f3e0cc7d053fa4141bb0a45479b8
|
4
|
+
data.tar.gz: fbf55a2a6858ecca53d5154683ebd9fc6c1d3d3d87075e8d2c4db9c778b7708a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a6992caed4090fb4a9498226d70faf1b584918bfe9681242a234ab46e8877682000574e83b3809dc7d0825d778056651a10211183278dde55b3f4b939dc4441
|
7
|
+
data.tar.gz: 70c74955236b489540ad2854695e2ece19d141b52b99ff2ca50461747c321c2f3f6381d00ac1079d19ddfc9c69b0686567188d004e2d233f6e63ee66fb392345
|
data/Gemfile.lock
CHANGED
@@ -212,6 +212,24 @@ module DjiMqttConnect
|
|
212
212
|
)
|
213
213
|
end
|
214
214
|
|
215
|
+
def build_offline_map_sync_progress_events_message
|
216
|
+
message_data = {
|
217
|
+
status: "failed",
|
218
|
+
reason: 0,
|
219
|
+
file: "geofence_xxx.json"
|
220
|
+
}
|
221
|
+
|
222
|
+
Thing::Product::OfflineMapSyncProgressEventsMessage.new(
|
223
|
+
bid: Message.generate_bid,
|
224
|
+
tid: Message.generate_tid,
|
225
|
+
timestamp: Message.current_timestamp,
|
226
|
+
_method: "offline_map_sync_progress",
|
227
|
+
need_reply: 1,
|
228
|
+
data: message_data,
|
229
|
+
_data: message_data
|
230
|
+
)
|
231
|
+
end
|
232
|
+
|
215
233
|
# OSD
|
216
234
|
|
217
235
|
def build_thing_product_dock_osd_message_with_sub_device
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module DjiMqttConnect
|
4
|
+
module Thing::Product
|
5
|
+
class OfflineMapSyncProgressEventsMessage < EventsMessage
|
6
|
+
attribute :_method, Types::String.enum("offline_map_sync_progress")
|
7
|
+
|
8
|
+
attribute :data do
|
9
|
+
attribute :status, Types::String
|
10
|
+
attribute :reason, Types::Integer
|
11
|
+
attribute :file, Types::String | Types::Nil
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/dji_mqtt_connect.rb
CHANGED
@@ -48,6 +48,7 @@ module DjiMqttConnect
|
|
48
48
|
autoload :FlighttaskReadyEventsMessage, "dji_mqtt_connect/messages/thing/product/events/flighttask_ready"
|
49
49
|
autoload :HighestPriorityUploadFlighttaskMediaEventsMessage, "dji_mqtt_connect/messages/thing/product/events/highest_priority_upload_flighttask_media"
|
50
50
|
autoload :HmsEventsMessage, "dji_mqtt_connect/messages/thing/product/events/hms"
|
51
|
+
autoload :OfflineMapSyncProgressEventsMessage, "dji_mqtt_connect/messages/thing/product/events/offline_map_sync_progress"
|
51
52
|
autoload :ReturnHomeInfoEventsMessage, "dji_mqtt_connect/messages/thing/product/events/return_home_info"
|
52
53
|
autoload :StatusCodeEventsMessage, "dji_mqtt_connect/messages/thing/product/events/status_code"
|
53
54
|
autoload :TrackEventsMessage, "dji_mqtt_connect/messages/thing/product/events/track"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dji_mqtt_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.22
|
4
|
+
version: 0.1.22.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sphere Drones
|
@@ -142,6 +142,7 @@ files:
|
|
142
142
|
- lib/dji_mqtt_connect/messages/thing/product/events/flighttask_ready.rb
|
143
143
|
- lib/dji_mqtt_connect/messages/thing/product/events/highest_priority_upload_flighttask_media.rb
|
144
144
|
- lib/dji_mqtt_connect/messages/thing/product/events/hms.rb
|
145
|
+
- lib/dji_mqtt_connect/messages/thing/product/events/offline_map_sync_progress.rb
|
145
146
|
- lib/dji_mqtt_connect/messages/thing/product/events/return_home_info.rb
|
146
147
|
- lib/dji_mqtt_connect/messages/thing/product/events/status_code.rb
|
147
148
|
- lib/dji_mqtt_connect/messages/thing/product/events/track.rb
|