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/BPM1AE.h | |
| parent | e4fb9966e762852bf17f21c8406501d42fae0b61 (diff) | |
Local iHealth SDK, device detail screen, iOS event fixes
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BPM1AE.h')
| -rw-r--r-- | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BPM1AE.h | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BPM1AE.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BPM1AE.h new file mode 100644 index 0000000..4027742 --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BPM1AE.h | |||
| @@ -0,0 +1,80 @@ | |||
| 1 | // | ||
| 2 | // BPM1AE.h | ||
| 3 | // iHealthDemoCode | ||
| 4 | // | ||
| 5 | // Created by XuJianbo on 16/8/18. | ||
| 6 | // Copyright © 2016年 zhiwei jing. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import <Foundation/Foundation.h> | ||
| 10 | |||
| 11 | typedef NS_ENUM(NSUInteger, WifiSetWifiError) { | ||
| 12 | WifiDidDisconnect=0,//下位机断开 | ||
| 13 | WifiOverTimeError,//超时 | ||
| 14 | WifiParameterInputWrong=400,//输入参数错误 | ||
| 15 | }; | ||
| 16 | |||
| 17 | |||
| 18 | typedef void(^BlockWifiError)(WifiSetWifiError error); | ||
| 19 | typedef void(^BlockWifiSetSuccess)(NSNumber *waitFlg); | ||
| 20 | typedef void(^BlockWifiConnectState)(void); | ||
| 21 | typedef void(^BlockWifiInfoDictionary) (NSDictionary *dict); | ||
| 22 | |||
| 23 | |||
| 24 | #define Wifi_SSID @"Wifi_SSID" | ||
| 25 | #define Wifi_Channel @"Wifi_Channel" | ||
| 26 | #define Wifi_Security @"Wifi_Security" | ||
| 27 | #define Wifi_RSSI @"Wifi_RSSI" | ||
| 28 | |||
| 29 | |||
| 30 | |||
| 31 | /** | ||
| 32 | BPM1AE device class | ||
| 33 | */ | ||
| 34 | @interface BPM1AE : NSObject | ||
| 35 | |||
| 36 | |||
| 37 | /** | ||
| 38 | *Start search the UDP access point device. | ||
| 39 | * @param wifiIDPSDic A block return the IDPS of the connected wifi Device. | ||
| 40 | * @param error This block will be invoked when error occurs. | ||
| 41 | * Specification: | ||
| 42 | * 1. WifiDidDisconnect: Socket connection disconnected. | ||
| 43 | * 2. WifiOverTimeError: Command time out. | ||
| 44 | * 3. WifiParameterInputWrong: Input wrong parameter(s). | ||
| 45 | */ | ||
| 46 | -(void)commandStartSearchDeviceGetIDPS:(BlockWifiInfoDictionary)wifiIDPSDic blockError:(BlockWifiError)error; | ||
| 47 | /** | ||
| 48 | *Start search the UDP access point device. | ||
| 49 | * @param blockWifiArrayDic The block return a dictionary which contains the wifi list and the wifi count that the device scan. | ||
| 50 | * @param error This block will be invoked when error occurs. | ||
| 51 | * Specification: | ||
| 52 | * 1. WifiDidDisconnect: Socket connection disconnected. | ||
| 53 | * 2. WifiOverTimeError: Command time out. | ||
| 54 | * 3. WifiParameterInputWrong: Input wrong parameter(s). | ||
| 55 | */ | ||
| 56 | -(void)commandGetWifiArrayDictionary:(BlockWifiInfoDictionary)blockWifiArrayDic blockError:(BlockWifiError)error; | ||
| 57 | |||
| 58 | /** | ||
| 59 | *Send wifi name and password to the device and return the connect status of the device. | ||
| 60 | * @param wifiName wifiname | ||
| 61 | * @param password wifiName,password are the information of the wifi that selected to connect. | ||
| 62 | * @param phoneIDStr The unique device ID of the current iPhone,iTouch or iPad. | ||
| 63 | * @param urlStr a service URL, to where the AP device send the wifi connect status. | ||
| 64 | * @param setResult The block return means set success, containing a flg to show whether need to wait the 'stepAndStateDic', @1 means need,@0 means not. | ||
| 65 | * @param stepAndStateDic The block return a dictionary which contains the connection step and the connection status. | ||
| 66 | * @param error This block will be invoked when error occurs. | ||
| 67 | * Specification: | ||
| 68 | * 1. WifiDidDisconnect: Socket connection disconnected. | ||
| 69 | * 2. WifiOverTimeError: Command time out. | ||
| 70 | * 3. WifiParameterInputWrong: Input wrong parameter(s). | ||
| 71 | */ | ||
| 72 | -(void)commandSendWifiName:(NSString*)wifiName password:(NSString *) password phoneID:(NSString *)phoneIDStr withURL:(NSString *)urlStr setResult:(BlockWifiSetSuccess)setResult blockConnectState:(BlockWifiInfoDictionary)stepAndStateDic blockError:(BlockWifiError)error; | ||
| 73 | |||
| 74 | |||
| 75 | /** | ||
| 76 | Disconnect current socket | ||
| 77 | */ | ||
| 78 | - (void)disconnect; | ||
| 79 | |||
| 80 | @end | ||
