dji_mqtt_connect 0.1.40 → 0.1.40.1

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: 209eb2ba74757a25e02dbbf23c1b69f934afb836d30edf8afdc9a4b19f5943d7
4
- data.tar.gz: dff2d0f26cdfff2d30834193330519181e38e207ac5a866068fc320b966466c9
3
+ metadata.gz: 61b1473bfaa9e9e9f316d3361492019e2203efdb39dd231236e4f96294930269
4
+ data.tar.gz: b665e66d5391368a480ed4925344647c29d31a9e4385a12960a0451e5660c9af
5
5
  SHA512:
6
- metadata.gz: 3c3d50fa6ef757e7c4d4e48ef49f46cf0e2e23ee2b6e633694a7e0fc72db7694e4097204c76aacf3f9082c359991eb41d30abbb9bf6561e28763f20ecdd73117
7
- data.tar.gz: f4e7dedef4d6eb1669e1b21af8d221ae51abefaf0a7e5eb7a3d41dff924ec482265ba9df7b7e38127cba354cbcc88b26507aced63e13fa07430de97735965b98
6
+ metadata.gz: 99c1804674152cd57bd3e3578f4f164c6f9539b1b003413e594a7dd5f79e2e904dafeb25a36a6fe1fb450cd73ffa878d507ac1ecffd05f1ac2ec9097361697c5
7
+ data.tar.gz: 7c70bb660c3d520cb883f004ea48e6bc38c13a8ef9a95756680c8f186dd8d315e33cbb86ad08fb15297cac5504b0210c655a3decb74a4669587c23a996255bdd
@@ -20,8 +20,12 @@ module DjiMqttConnect
20
20
 
21
21
  attribute :progress do
22
22
  # {"3000":"Panorama photo capturing is not start or is finished","3002":"Panorama photo is capturing","3005":"Panorama photo is synthesizing"}
23
- # NOTE: not enum-constrained, real messages have been observed with current_step: 0, which isn't a documented value
24
- attribute :current_step, Types::Integer
23
+ # NOTE: real messages have been observed with current_step: 0, which isn't a documented value
24
+ attribute :current_step, Types::PanoramaStep | Types::Integer
25
+
26
+ def current_step?
27
+ Types::PanoramaStep.valid?(current_step)
28
+ end
25
29
 
26
30
  attribute :percent, Types::Integer.constrained(gteq: 0, lteq: 100)
27
31
  end
@@ -76,6 +76,13 @@ module DjiMqttConnect
76
76
  CAMERA_RECORDING_STATE_RECORDING = 1
77
77
  )
78
78
 
79
+ # {"3000":"Panorama photo capturing is not start or is finished","3002":"Panorama photo is capturing","3005":"Panorama photo is synthesizing"}
80
+ PanoramaStep = Types::Integer.enum(
81
+ PANORAMA_STEP_NOT_STARTED_OR_FINISHED = 3000,
82
+ PANORAMA_STEP_CAPTURING = 3002,
83
+ PANORAMA_STEP_SYNTHESIZING = 3005
84
+ )
85
+
79
86
  # {"0":"Closed","1":"Opened","2":"Half-open","3":"Cover state is abnormal"}
80
87
  CoverState = Types::Integer.enum(
81
88
  COVER_STATE_CLOSED = 0,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DjiMqttConnect
4
- VERSION = "0.1.40"
4
+ VERSION = "0.1.40.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dji_mqtt_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.40
4
+ version: 0.1.40.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sphere Drones
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-11-17 00:00:00.000000000 Z
11
+ date: 2026-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport