dji_mqtt_connect 0.1.1.2 → 0.1.1.3

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: abc508b271fced7206c38e5b17e8b88ebab2aa0cbb36b57850d24000d76cfe11
4
+ data.tar.gz: 4c70a5157dea47a23f223787ce336489c3f02e754deb07818a6583191f22c044
5
5
  SHA512:
6
- metadata.gz: 297034d9626444859c542ce662ecbd46fc9151c77dc81f07ac7f2abbe093b856145d213962fde565694800d7e254d3f5c8a69a470ca86687e4bac22566d975cb
7
- data.tar.gz: c60cf341603f507a698e0e2d910b544424193185a4722af777e3944c45c4c23956a76a06f895ac6caa1c902f776d1031f363899ed49c1412c0fce477376cd312
6
+ metadata.gz: 10334f0dce7e9b22918197c365e0be293a26b27a644eb5bdb11d97296376bf619904bb84c5e90c1eac4494f26c75be4a49c398d6fe227fb8884d6ef81a105b11
7
+ data.tar.gz: 91eeb380280df101ca3275bdf4570809492092d1bfc4c1ba899af8d27eefc99b394d509eb9a2d479e7d9fbb74c5ab0fc9635e69c5c24e409b77fea2e6e61d0f8
@@ -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
@@ -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.3"
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.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sphere Drones