mudra-sdk 0.2.2__tar.gz → 0.2.3__tar.gz
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.
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/PKG-INFO +1 -1
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk/__init__.py +1 -1
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk/cloud/api_config.py +1 -1
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk/models/mudra_device.py +1 -10
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk.egg-info/PKG-INFO +1 -1
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/setup.py +1 -1
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/MANIFEST.in +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/README.md +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk/cloud/__init__.py +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk/cloud/auth_storage.py +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk/cloud/data.py +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk/cloud/mudra_server_client.py +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk/cloud/request_interceptor.py +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk/libs/__init__.py +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk/libs/darwin/arm64/MudraSDK.dylib +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk/libs/darwin/x86_64/MudraSDK.dylib +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk/libs/library_loader.py +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk/libs/windows/x64/MudraSDK.dll +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk/libs/windows/x86/MudraSDK.dll +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk/models/__init__.py +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk/models/callbacks.py +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk/models/computation_wrapper.py +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk/models/data_recorder.py +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk/models/enums.py +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk/models/firmware_status.py +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk/models/mudra.py +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk/service/__init__.py +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk/service/ble_service.py +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk.egg-info/SOURCES.txt +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk.egg-info/dependency_links.txt +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk.egg-info/requires.txt +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/mudra_sdk.egg-info/top_level.txt +0 -0
- {mudra_sdk-0.2.2 → mudra_sdk-0.2.3}/setup.cfg +0 -0
|
@@ -14,7 +14,7 @@ USER_PRODUCTION_BASE_URL = "https://users.mudra-server.com/api/v1/"
|
|
|
14
14
|
DATA_PRODUCTION_BASE_URL = "https://data.mudra-server.com/api/v1/"
|
|
15
15
|
|
|
16
16
|
# Default to debug
|
|
17
|
-
BASE_URL =
|
|
17
|
+
BASE_URL = USER_PRODUCTION_BASE_URL
|
|
18
18
|
|
|
19
19
|
_USER_TO_DATA_SERVER_URL = {
|
|
20
20
|
USER_DEBUG_BASE_URL: DATA_DEBUG_BASE_URL,
|
|
@@ -49,7 +49,6 @@ class MudraDevice(BLEDevice):
|
|
|
49
49
|
FirmwareDataType.embeddedAirTouch: False,
|
|
50
50
|
}
|
|
51
51
|
### ----------------------- Parameters ----------------------- ###
|
|
52
|
-
self._security_number: Optional[bytes] = None
|
|
53
52
|
self._license_sent: bool = False
|
|
54
53
|
|
|
55
54
|
### ----------------------- Data Recorder ----------------------- ###
|
|
@@ -61,7 +60,6 @@ class MudraDevice(BLEDevice):
|
|
|
61
60
|
self._on_navigation_axis_ready: Optional[computationWrapperModule.OnNavigationAxisReceivedCallback] = None
|
|
62
61
|
self._on_navigation_direction_ready: Optional[computationWrapperModule.OnNavigationDirectionReceivedCallback] = None
|
|
63
62
|
self._on_button_changed_ready: Optional[computationWrapperModule.OnAirMouseButtonChangedReceivedCallback] = None
|
|
64
|
-
self._on_security_number_received: Optional[computationWrapperModule.OnSecurityNumberReceivedCallback] = None
|
|
65
63
|
|
|
66
64
|
### ----------------------- Parameters Callbacks ----------------------- ###
|
|
67
65
|
self._on_charging_state_changed: Optional[computationWrapperModule.OnChargingStateChangedCallback] = None
|
|
@@ -127,10 +125,6 @@ class MudraDevice(BLEDevice):
|
|
|
127
125
|
self._firmware_version = version
|
|
128
126
|
|
|
129
127
|
def on_security_number_received(self, data: bytes):
|
|
130
|
-
self._security_number = data
|
|
131
|
-
if self._on_security_number_received:
|
|
132
|
-
self._on_security_number_received(data)
|
|
133
|
-
|
|
134
128
|
if not self._license_sent:
|
|
135
129
|
self._send_security_number(data)
|
|
136
130
|
|
|
@@ -145,7 +139,6 @@ class MudraDevice(BLEDevice):
|
|
|
145
139
|
return self._is_charging
|
|
146
140
|
|
|
147
141
|
def get_serial_number(self) -> Optional[int]:
|
|
148
|
-
self._license_sent = False
|
|
149
142
|
if self._serial_number_right_part is not None and self._serial_number_left_part is not None:
|
|
150
143
|
return self._serial_number_right_part + self._serial_number_left_part
|
|
151
144
|
return None
|
|
@@ -169,6 +162,7 @@ class MudraDevice(BLEDevice):
|
|
|
169
162
|
|
|
170
163
|
async def get_security_number(self,):
|
|
171
164
|
if self._characteristic_status[MudraCharacteristicUUID.COMMAND_CHARACTERISTIC]:
|
|
165
|
+
self._license_sent = False
|
|
172
166
|
await mudraModule.Mudra().get_security_number(self)
|
|
173
167
|
|
|
174
168
|
def _send_security_number(self, random_number: bytes):
|
|
@@ -264,9 +258,6 @@ class MudraDevice(BLEDevice):
|
|
|
264
258
|
self._computation_wrapper.set_air_touch_active(active)
|
|
265
259
|
await self._update_state_enabled()
|
|
266
260
|
|
|
267
|
-
async def set_on_security_number_received(self, callback: computationWrapperModule.OnSecurityNumberReceivedCallback) -> None:
|
|
268
|
-
self._on_security_number_received = callback
|
|
269
|
-
|
|
270
261
|
### ----------------------- Is Callbacks set Methods ----------------------- ###
|
|
271
262
|
|
|
272
263
|
def is_on_imu_gyro_callback_set(self) -> bool:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|