dji_mqtt_connect 0.1.1.1 → 0.1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f2fc8a8e791166b6c133bfc3f93aa3b5c062a479537a3420a6e280018c6b3aa
4
- data.tar.gz: 7036d2d904b41a59afb8f1453124bc93f0eb5893e8e82772deb14f0e74047b03
3
+ metadata.gz: abc508b271fced7206c38e5b17e8b88ebab2aa0cbb36b57850d24000d76cfe11
4
+ data.tar.gz: 4c70a5157dea47a23f223787ce336489c3f02e754deb07818a6583191f22c044
5
5
  SHA512:
6
- metadata.gz: 9439641d1c203a5d26298e4d87f13a73c80e9b6ad31becab294443d030e13f7e0abb79bd031ead88159e52aabf7123d4fe584dfc86430b6849ee02f34194b436
7
- data.tar.gz: c91169f9fc14b1721cf085152e9da0d7b6718323482569bf14a797a850730394165133633673c2add1866dc06d1e62cf6dcce5d0b6a9a74cf9f81d7d42b6066a
6
+ metadata.gz: 10334f0dce7e9b22918197c365e0be293a26b27a644eb5bdb11d97296376bf619904bb84c5e90c1eac4494f26c75be4a49c398d6fe227fb8884d6ef81a105b11
7
+ data.tar.gz: 91eeb380280df101ca3275bdf4570809492092d1bfc4c1ba899af8d27eefc99b394d509eb9a2d479e7d9fbb74c5ab0fc9635e69c5c24e409b77fea2e6e61d0f8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dji_mqtt_connect (0.1.1.1)
4
+ dji_mqtt_connect (0.1.1.2)
5
5
  activesupport (>= 6.0, <= 8)
6
6
  dry-struct (~> 1.6)
7
7
  dry-transformer (~> 1.0)
@@ -46,6 +46,16 @@ module DjiMqttConnect
46
46
  Thing::Product::OsdTopicRepository.new(self)
47
47
  end
48
48
 
49
+ # Handles topic thing/product/#{pid}/requests
50
+ def thing_product_requests_topic
51
+ Thing::Product::RequestsTopicRepository.new(self)
52
+ end
53
+
54
+ # Handles topic thing/product/#{pid}/requests_reply
55
+ def thing_product_requests_reply_topic
56
+ Thing::Product::RequestsReplyTopicRepository.new(self)
57
+ end
58
+
49
59
  attr_reader :mqtt_client
50
60
  end
51
61
  end
@@ -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.1"
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.1
4
+ version: 0.1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sphere Drones