sensor-sdk 0.0.11__tar.gz → 0.0.13__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.

Potentially problematic release.


This version of sensor-sdk might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sensor-sdk
3
- Version: 0.0.11
3
+ Version: 0.0.13
4
4
  Summary: Python sdk for Synchroni
5
5
  Home-page: https://github.com/oymotion/SynchroniSDKPython
6
6
  Author: Martin Ye
@@ -347,8 +347,47 @@ batteryPower = sensorProfile.getBatteryLevel()
347
347
 
348
348
  Please check console.py in examples directory
349
349
 
350
- ## Async methods
350
+ ### Async methods
351
351
 
352
352
  all methods start with async is async methods, they has same params and return result as sync methods.
353
353
 
354
354
  Please check async_console.py in examples directory
355
+
356
+ ### setParam method
357
+
358
+ Use `def setParam(self, key: str, value: str) -> str` to set parameter of sensor profile. Please call after device in 'Ready' state.
359
+
360
+ Below is available key and value:
361
+
362
+ ```python
363
+ result = sensorProfile.setParam("NTF_EMG", "ON")
364
+ # set EMG data to ON or OFF, result is "OK" if succeed
365
+
366
+ result = sensorProfile.setParam("NTF_EEG", "ON")
367
+ # set EEG data to ON or OFF, result is "OK" if succeed
368
+
369
+ result = sensorProfile.setParam("NTF_ECG", "ON")
370
+ # set ECG data to ON or OFF, result is "OK" if succeed
371
+
372
+ result = sensorProfile.setParam("NTF_IMU", "ON")
373
+ # set IMU data to ON or OFF, result is "OK" if succeed
374
+
375
+ result = sensorProfile.setParam("NTF_BRTH", "ON")
376
+ # set BRTH data to ON or OFF, result is "OK" if succeed
377
+
378
+ result = sensorProfile.setParam("FILTER_50Hz", "ON")
379
+ # set 50Hz notch filter to ON or OFF, result is "OK" if succeed
380
+
381
+ result = sensorProfile.setParam("FILTER_60Hz", "ON")
382
+ # set 60Hz notch filter to ON or OFF, result is "OK" if succeed
383
+
384
+ result = sensorProfile.setParam("FILTER_HPF", "ON")
385
+ # set 0.5Hz hpf filter to ON or OFF, result is "OK" if succeed
386
+
387
+ result = sensorProfile.setParam("FILTER_LPF", "ON")
388
+ # set 80Hz lpf filter to ON or OFF, result is "OK" if succeed
389
+
390
+ result = sensorProfile.setParam("DEBUG_BLE_DATA_PATH", "d:/temp/test.csv")
391
+ # set debug ble data path, result is "OK" if succeed
392
+ # please give an absolute path and make sure it is valid and writeable by yourself
393
+ ```