diff options
| author | hc <haocheng.xie@respiree.com> | 2026-04-13 15:17:52 +0800 |
|---|---|---|
| committer | hc <haocheng.xie@respiree.com> | 2026-04-13 15:17:52 +0800 |
| commit | d6d9a09d505d11148599a95a5be3e1351edbe0ac (patch) | |
| tree | a5f5891983d1ff207e99f683a5e151519cef4980 /libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/PO1.h | |
| parent | e4fb9966e762852bf17f21c8406501d42fae0b61 (diff) | |
Local iHealth SDK, device detail screen, iOS event fixes
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/PO1.h')
| -rw-r--r-- | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/PO1.h | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/PO1.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/PO1.h new file mode 100644 index 0000000..1b3c907 --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/PO1.h | |||
| @@ -0,0 +1,82 @@ | |||
| 1 | // | ||
| 2 | // PO1.h | ||
| 3 | // testShareCommunication | ||
| 4 | // | ||
| 5 | // Created by daiqingquan on 13-11-29. | ||
| 6 | // Copyright (c) 2013年 my. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import <Foundation/Foundation.h> | ||
| 10 | #import "POMacroFile.h" | ||
| 11 | |||
| 12 | |||
| 13 | /** | ||
| 14 | PO1 | ||
| 15 | */ | ||
| 16 | @interface PO1 : NSObject | ||
| 17 | |||
| 18 | @property (strong, nonatomic) NSString *currentUUID; | ||
| 19 | @property (strong, nonatomic) NSString *serialNumber; | ||
| 20 | @property (strong, nonatomic) NSString *firmwareVersion; | ||
| 21 | |||
| 22 | |||
| 23 | /** | ||
| 24 | * Get device IDPS | ||
| 25 | * @param function A block to return the function and states that the device supports. | ||
| 26 | * { | ||
| 27 | MAC = 60A4232504ED; | ||
| 28 | accessoryName = "Pulse Oximeter"; | ||
| 29 | firmwareVersion = "1.0.0"; | ||
| 30 | hardwareVersion = "1.0.0"; | ||
| 31 | manufaturer = iHealth; | ||
| 32 | modelNumber = "PO1 11070"; | ||
| 33 | protocol = "com.jiuan.PO1"; | ||
| 34 | } | ||
| 35 | * @param errorBlock A block to refer ‘error’ in ‘Establish measurement connection’ in PO1. | ||
| 36 | */ | ||
| 37 | -(void)commandFunction:(DisposePO1DeviceFunctionBlock)function DisposeErrorBlock:(DisposePO1ErrorBlock)errorBlock; | ||
| 38 | |||
| 39 | /** | ||
| 40 | * Query power status | ||
| 41 | * @param batteryBlock Battery,from 0~100 | ||
| 42 | * @param errorBlock Communication error codes | ||
| 43 | */ | ||
| 44 | -(void)commandPO1GetDeviceBattery:(DisposePO1BatteryBlock)batteryBlock withErrorBlock:(DisposePO1ErrorBlock)errorBlock; | ||
| 45 | |||
| 46 | |||
| 47 | /** | ||
| 48 | Measure data Notification | ||
| 49 | |||
| 50 | PO1NotificationMeasureData | ||
| 51 | |||
| 52 | You need to listen to this message to get real-time measurements | ||
| 53 | |||
| 54 | The unit of PI is %. | ||
| 55 | |||
| 56 | Content of measurement results: | ||
| 57 | { | ||
| 58 | PI = "5.8"; | ||
| 59 | bpm = 90; | ||
| 60 | height = 4; | ||
| 61 | spo2 = 98; | ||
| 62 | wave = ( | ||
| 63 | 42, | ||
| 64 | 41, | ||
| 65 | 41, | ||
| 66 | 41, | ||
| 67 | 40 | ||
| 68 | ); | ||
| 69 | } | ||
| 70 | */ | ||
| 71 | |||
| 72 | |||
| 73 | /* | ||
| 74 | Disconnect current device | ||
| 75 | */ | ||
| 76 | |||
| 77 | -(void)commandDisconnectDevice; | ||
| 78 | |||
| 79 | @end | ||
| 80 | |||
| 81 | |||
| 82 | |||
