dji_mqtt_connect 0.1.1.2 → 0.1.1.4

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: bcfa0275e7910987f8607c2b747d52094994f93935a8a365504c206637b5bdc5
4
- data.tar.gz: fd87959ae4b12332a8decb4c15ca9e344bcba9543f77c9f200e3a765932791cf
3
+ metadata.gz: d7418cbbd6b891b0d72ea6d8e47f9b7f813b9de2dffd97f7bae249292a73f510
4
+ data.tar.gz: 6f2047ad8fcb7db0eff553c8c4dde862d2dbaa8b0820cd240a400d276470e51f
5
5
  SHA512:
6
- metadata.gz: 297034d9626444859c542ce662ecbd46fc9151c77dc81f07ac7f2abbe093b856145d213962fde565694800d7e254d3f5c8a69a470ca86687e4bac22566d975cb
7
- data.tar.gz: c60cf341603f507a698e0e2d910b544424193185a4722af777e3944c45c4c23956a76a06f895ac6caa1c902f776d1031f363899ed49c1412c0fce477376cd312
6
+ metadata.gz: d1d174f8a9475a59f1e5ed31835903a49dbc1100464fbf9da910b47f7219ed348ab710aee3baef7c1da75d17ef4e5340203e033650a50257018fa7499fae67b1
7
+ data.tar.gz: 9c9795cea856dd583733174aa9fd0871c50772b23d438bfb3d1608dd913187df62e4e7cb9468c6ad4beba336c60d163f9887a8c635714cf1dd0853ab25789f69
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dji_mqtt_connect (0.1.1.2)
4
+ dji_mqtt_connect (0.1.1.4)
5
5
  activesupport (>= 6.0, <= 8)
6
6
  dry-struct (~> 1.6)
7
7
  dry-transformer (~> 1.0)
@@ -4,20 +4,23 @@ module DjiMqttConnect
4
4
  module Sys::Product
5
5
  class UpdateTopoStatusMessage < StatusMessage
6
6
  attribute :data do
7
- attribute :type, Types::Integer
8
- attribute :sub_type, Types::Integer
7
+ attribute? :domain, Types::DeviceDomain
8
+ attribute :type, Types::DeviceType
9
+ attribute :sub_type, Types::DeviceSubType
9
10
  attribute :device_secret, Types::String
10
- attribute? :domain, Types::Integer
11
11
  attribute :nonce, Types::String
12
- attribute :version, Types::Integer
12
+
13
+ attribute? :version, Types::Integer
14
+ attribute? :thing_version, Types::String # dock contains thing_version instead of version
15
+
13
16
  attribute :sub_devices, Types::Array do
14
17
  attribute :sn, Types::String
15
- attribute :type, Types::Integer
16
- attribute :sub_type, Types::Integer
18
+ attribute :type, Types::DeviceType
19
+ attribute :sub_type, Types::DeviceSubType
17
20
  attribute :index, Types::String
18
21
  attribute :device_secret, Types::String
19
22
  attribute :nonce, Types::String
20
- attribute :version, Types::Integer
23
+ attribute? :version, Types::Integer
21
24
  end
22
25
  end
23
26
  end
@@ -14,9 +14,9 @@ module DjiMqttConnect
14
14
  attribute :index, Types::Integer
15
15
  attribute :loop_times, Types::Integer
16
16
  attribute :sn, Types::String
17
- attribute :sub_type, Types::Integer
17
+ attribute :sub_type, Types::DeviceSubType
18
18
  attribute :temperature, Types::JSON::Decimal
19
- attribute :type, Types::Integer
19
+ attribute :type, Types::DeviceType
20
20
  attribute :voltage, Types::Integer
21
21
  end
22
22
  attribute :capacity_percent, Types::Integer
@@ -48,8 +48,8 @@ module DjiMqttConnect
48
48
  attribute :total, Types::Integer
49
49
  attribute :used, Types::Integer
50
50
  end
51
- attribute :total_flight_distance, Types::Integer
52
- attribute :total_flight_time, Types::Integer
51
+ attribute :total_flight_distance, Types::JSON::Decimal
52
+ attribute :total_flight_time, Types::JSON::Decimal
53
53
  attribute :track_id, Types::String
54
54
  attribute :vertical_speed, Types::JSON::Decimal
55
55
  attribute :wind_direction, Types::JSON::Decimal
@@ -19,5 +19,10 @@ module DjiMqttConnect
19
19
  # lat/lng coordinates
20
20
  Latitude = NullInteger | Types::JSON::Decimal.constrained(gteq: -90, lteq: 90)
21
21
  Longitude = NullInteger | Types::JSON::Decimal.constrained(gteq: -180, lteq: 180)
22
+
23
+ # Device Details
24
+ DeviceDomain = Types::Coercible::Integer # dock returns this value as string
25
+ DeviceType = Types::Integer
26
+ DeviceSubType = Types::Integer
22
27
  end
23
28
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DjiMqttConnect
4
- VERSION = "0.1.1.2"
4
+ VERSION = "0.1.1.4"
5
5
  end
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.1.2
4
+ version: 0.1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sphere Drones