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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7027ac9b38e9e7b0a0927e4fd9b6419c910d8c6fb3b531fdf70f5384a8f924b1
4
- data.tar.gz: e8ebff861fe60c9f97d6ab1123c557c606d9ff1c7fac4585b119d8810de334ae
3
+ metadata.gz: 904fc18520b674341b8c69c048a1a15c13d9f3e0cc7d053fa4141bb0a45479b8
4
+ data.tar.gz: fbf55a2a6858ecca53d5154683ebd9fc6c1d3d3d87075e8d2c4db9c778b7708a
5
5
  SHA512:
6
- metadata.gz: '0508e79e10728091f78602a32b4c5af879952c042f6ca2c9feb82f9141fb63ee2184f1d43e0ff484108139b8e0f3e591d8d60b29338732732b83a401ed6a5e4c'
7
- data.tar.gz: 913b5ea242a5f96f3f5e0331fe55cc123632d5baa7db91016cb932233fc3322e0ae1b8a88e8fda32f7b6ed21aca6e26cf9e38e8dc9b599a811c7672246ce6fe1
6
+ metadata.gz: 3a6992caed4090fb4a9498226d70faf1b584918bfe9681242a234ab46e8877682000574e83b3809dc7d0825d778056651a10211183278dde55b3f4b939dc4441
7
+ data.tar.gz: 70c74955236b489540ad2854695e2ece19d141b52b99ff2ca50461747c321c2f3f6381d00ac1079d19ddfc9c69b0686567188d004e2d233f6e63ee66fb392345
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dji_mqtt_connect (0.1.22)
4
+ dji_mqtt_connect (0.1.22.1)
5
5
  activesupport (>= 6.0, <= 8)
6
6
  dry-struct (~> 1.6)
7
7
  dry-transformer (~> 1.0)
@@ -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
@@ -31,7 +31,8 @@ module DjiMqttConnect
31
31
  "flight_areas_sync_progress",
32
32
  "flighttask_progress",
33
33
  "flighttask_ready",
34
- "highest_priority_upload_flighttask_media"
34
+ "highest_priority_upload_flighttask_media",
35
+ "offline_map_sync_progress"
35
36
  )
36
37
 
37
38
  attribute :data do
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DjiMqttConnect
4
- VERSION = "0.1.22"
4
+ VERSION = "0.1.22.1"
5
5
  end
@@ -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