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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/dji_mqtt_connect/messages/sys/product/update_topo_status_message.rb +10 -7
- data/lib/dji_mqtt_connect/messages/thing/product/drone_osd_message.rb +4 -4
- data/lib/dji_mqtt_connect/types.rb +5 -0
- data/lib/dji_mqtt_connect/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7418cbbd6b891b0d72ea6d8e47f9b7f813b9de2dffd97f7bae249292a73f510
|
4
|
+
data.tar.gz: 6f2047ad8fcb7db0eff553c8c4dde862d2dbaa8b0820cd240a400d276470e51f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1d174f8a9475a59f1e5ed31835903a49dbc1100464fbf9da910b47f7219ed348ab710aee3baef7c1da75d17ef4e5340203e033650a50257018fa7499fae67b1
|
7
|
+
data.tar.gz: 9c9795cea856dd583733174aa9fd0871c50772b23d438bfb3d1608dd913187df62e4e7cb9468c6ad4beba336c60d163f9887a8c635714cf1dd0853ab25789f69
|
data/Gemfile.lock
CHANGED
@@ -4,20 +4,23 @@ module DjiMqttConnect
|
|
4
4
|
module Sys::Product
|
5
5
|
class UpdateTopoStatusMessage < StatusMessage
|
6
6
|
attribute :data do
|
7
|
-
attribute :
|
8
|
-
attribute :
|
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
|
-
|
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::
|
16
|
-
attribute :sub_type, Types::
|
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::
|
17
|
+
attribute :sub_type, Types::DeviceSubType
|
18
18
|
attribute :temperature, Types::JSON::Decimal
|
19
|
-
attribute :type, Types::
|
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::
|
52
|
-
attribute :total_flight_time, Types::
|
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
|