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/IDOBlueEnum.h | |
| parent | e4fb9966e762852bf17f21c8406501d42fae0b61 (diff) | |
Local iHealth SDK, device detail screen, iOS event fixes
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOBlueEnum.h')
| -rwxr-xr-x | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOBlueEnum.h | 213 |
1 files changed, 213 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOBlueEnum.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOBlueEnum.h new file mode 100755 index 0000000..2303091 --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOBlueEnum.h | |||
| @@ -0,0 +1,213 @@ | |||
| 1 | // | ||
| 2 | // IDOBlueEnum.h | ||
| 3 | // IDOBluetoothInternal | ||
| 4 | // | ||
| 5 | // Created by 何东阳 on 2019/8/3. | ||
| 6 | // Copyright © 2019 何东阳. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #ifndef IDOBlueEnum_h | ||
| 10 | #define IDOBlueEnum_h | ||
| 11 | |||
| 12 | /** | ||
| 13 | * 蓝牙扫描设备模式枚举 | ||
| 14 | * Bluetooth scanning device mode enumeration | ||
| 15 | */ | ||
| 16 | typedef NS_ENUM(NSInteger, IDO_SCAN_DEVICE_MODE) { | ||
| 17 | /** | ||
| 18 | * 手机蓝牙关闭或不支持蓝牙功能将不能扫描设备 | ||
| 19 | * Mobile phone Bluetooth off or not supporting Bluetooth will not scan the device | ||
| 20 | */ | ||
| 21 | IDO_DO_NOT_SCAN_MODE = 0, | ||
| 22 | |||
| 23 | /** | ||
| 24 | * 手动扫描连接模式 | ||
| 25 | * Manual scan connection mode | ||
| 26 | */ | ||
| 27 | IDO_MANUAL_SCAN_CONNECT_MODE, | ||
| 28 | |||
| 29 | /** | ||
| 30 | * 系统蓝牙列表扫描连接模式 | ||
| 31 | * System bluetooth list scan connection mode | ||
| 32 | */ | ||
| 33 | IDO_SYSTEM_LIST_SCAN_CONNECT_MODE, | ||
| 34 | |||
| 35 | /** | ||
| 36 | * 自动扫描连接模式 | ||
| 37 | * MAutomatic scan connection mode | ||
| 38 | */ | ||
| 39 | IDO_AUTO_SCAN_CONNECT_MODE, | ||
| 40 | |||
| 41 | }; | ||
| 42 | |||
| 43 | /** | ||
| 44 | * 蓝牙管理状态枚举 | ||
| 45 | * Bluetooth management status enumeration | ||
| 46 | */ | ||
| 47 | typedef NS_ENUM(NSInteger, IDO_BLUETOOTH_MANAGER_STATE) { | ||
| 48 | /** | ||
| 49 | * 蓝牙关闭 | ||
| 50 | * Bluetooth off | ||
| 51 | */ | ||
| 52 | IDO_MANAGER_STATE_POWEREDOFF = 1, | ||
| 53 | |||
| 54 | /** | ||
| 55 | * 蓝牙打开 | ||
| 56 | * Bluetooth open | ||
| 57 | */ | ||
| 58 | IDO_MANAGER_STATE_POWEREDON, | ||
| 59 | |||
| 60 | /** | ||
| 61 | * 蓝牙自动扫描中 | ||
| 62 | * Bluetooth automatic scanning | ||
| 63 | */ | ||
| 64 | IDO_MANAGER_STATE_AUTO_SCANING, | ||
| 65 | |||
| 66 | /** | ||
| 67 | * 在ota模式自动连接 | ||
| 68 | * Automatically connect in ota mode | ||
| 69 | */ | ||
| 70 | IDO_MANAGER_STATE_AUTO_OTA_CONNECT, | ||
| 71 | |||
| 72 | /** | ||
| 73 | * 普通模式自动连接 | ||
| 74 | * Normal mode automatic connection | ||
| 75 | */ | ||
| 76 | IDO_MANAGER_STATE_AUTO_CONNECT, | ||
| 77 | |||
| 78 | /** | ||
| 79 | * 蓝牙扫描停止 | ||
| 80 | * Bluetooth scan stop | ||
| 81 | */ | ||
| 82 | IDO_MANAGER_STATE_SCAN_STOP, | ||
| 83 | |||
| 84 | /** | ||
| 85 | * 蓝牙手动扫描中 | ||
| 86 | * Bluetooth manual scanning | ||
| 87 | */ | ||
| 88 | IDO_MANAGER_STATE_MANUAL_SCANING, | ||
| 89 | |||
| 90 | /** | ||
| 91 | * 在ota模式手动连接 | ||
| 92 | * Manually connect in ota mode | ||
| 93 | */ | ||
| 94 | IDO_MANAGER_STATE_MANUAL_OTA_CONNECT, | ||
| 95 | |||
| 96 | /** | ||
| 97 | * 普通模式手动连接 | ||
| 98 | * Normal mode manual connection | ||
| 99 | */ | ||
| 100 | IDO_MANAGER_STATE_MANUAL_CONNECT, | ||
| 101 | |||
| 102 | /** | ||
| 103 | * 手环连接成功 | ||
| 104 | * The bracelet is connected successfully | ||
| 105 | */ | ||
| 106 | IDO_MANAGER_STATE_DID_CONNECT, | ||
| 107 | |||
| 108 | /** | ||
| 109 | * 手环连接失败 | ||
| 110 | * Bracelet connection failed | ||
| 111 | */ | ||
| 112 | IDO_MANAGER_STATE_CONNECT_FAILED, | ||
| 113 | |||
| 114 | /** | ||
| 115 | * 手环断开连接 | ||
| 116 | * Bracelet dis connect | ||
| 117 | */ | ||
| 118 | IDO_MANAGER_STATE_DIS_CONNECT | ||
| 119 | }; | ||
| 120 | |||
| 121 | |||
| 122 | /** | ||
| 123 | * 蓝牙连接错误类型枚举 | ||
| 124 | * Bluetooth connection error type enumeration | ||
| 125 | */ | ||
| 126 | typedef NS_ENUM(NSInteger, IDO_BLUETOOTH_CONNECT_ERROR_TYPE) { | ||
| 127 | /** | ||
| 128 | * UUID 为空蓝牙不能自动连接 | ||
| 129 | * UUID is Empty, Bluetooth cannot be automatically connected | ||
| 130 | */ | ||
| 131 | IDO_BLUETOOTH_UUID_EMPTY_TYPE = 1, | ||
| 132 | |||
| 133 | /** | ||
| 134 | * MAC地址为空ota模式蓝牙不能自动连接 | ||
| 135 | * The MAC address is empty. ota mode Bluetooth cannot be automatically connected. | ||
| 136 | */ | ||
| 137 | IDO_BLUETOOTH_MAC_ADDR_EMPTY_TYPE, | ||
| 138 | |||
| 139 | /** | ||
| 140 | * 未绑定设备蓝牙不能自动连接 | ||
| 141 | * Unbound device Bluetooth cannot be automatically connected. | ||
| 142 | */ | ||
| 143 | IDO_BLUETOOTH_UNBOUND_TYPE, | ||
| 144 | |||
| 145 | /** | ||
| 146 | * 蓝牙关闭不能自动连接 | ||
| 147 | * Bluetooth off does not automatically connect. | ||
| 148 | */ | ||
| 149 | IDO_BLUETOOTH_POWERED_OFF_TYPE, | ||
| 150 | |||
| 151 | /** | ||
| 152 | * 外围设备不存在 | ||
| 153 | * Peripheral device does not exist | ||
| 154 | */ | ||
| 155 | IDO_BLUETOOTH_PERIPHERAL_DON_EXIST, | ||
| 156 | |||
| 157 | /** | ||
| 158 | * 蓝牙自动模式断开连接 | ||
| 159 | * Bluetooth auto mode disconnect | ||
| 160 | */ | ||
| 161 | IDO_BLUETOOTH_AUTO_DIS_CONNECT_TYPE, | ||
| 162 | |||
| 163 | /** | ||
| 164 | * 蓝牙手动模式断开连接 | ||
| 165 | * Bluetooth manual mode disconnect | ||
| 166 | */ | ||
| 167 | IDO_BLUETOOTH_MANUAL_DIS_CONNECT_TYPE, | ||
| 168 | |||
| 169 | /** | ||
| 170 | * 蓝牙连接失败 | ||
| 171 | * Bluetooth connection failed | ||
| 172 | */ | ||
| 173 | IDO_BLUETOOTH_CONNECT_FAIL_TYPE, | ||
| 174 | |||
| 175 | /** | ||
| 176 | * 蓝牙连接超时 | ||
| 177 | * Bluetooth connection timeout | ||
| 178 | */ | ||
| 179 | IDO_BLUETOOTH_CONNECT_TIME_OUT_TYPE, | ||
| 180 | |||
| 181 | /** | ||
| 182 | * 蓝牙扫描连接超时 | ||
| 183 | * Bluetooth scan connection timed out | ||
| 184 | */ | ||
| 185 | IDO_BLUETOOTH_SCAN_CONNECT_TIME_OUT_TYPE, | ||
| 186 | |||
| 187 | /** | ||
| 188 | * 蓝牙发现外围设备服务失败 | ||
| 189 | * Bluetooth discovery peripheral service failed | ||
| 190 | */ | ||
| 191 | IDO_BLUETOOTH_DISCOVER_SERVICE_FAIL_TYPE, | ||
| 192 | |||
| 193 | /** | ||
| 194 | * 蓝牙发现外围设备服务不存在 | ||
| 195 | * Bluetooth discovery peripheral service does not exist | ||
| 196 | */ | ||
| 197 | IDO_BLUETOOTH_DISCOVER_SERVICE_NO_EXIST_TYPE, | ||
| 198 | |||
| 199 | /** | ||
| 200 | * 蓝牙发现外围设备特征失败 | ||
| 201 | * Bluetooth discovery peripheral feature failed | ||
| 202 | */ | ||
| 203 | IDO_BLUETOOTH_DISCOVER_CHARACTERISTICS_TYPE, | ||
| 204 | |||
| 205 | /** | ||
| 206 | * 蓝牙数据交换错误 | ||
| 207 | * Bluetooth data exchange error | ||
| 208 | */ | ||
| 209 | IDO_BLUETOOTH_DATA_EXCHANGE_ERROR_TYPE | ||
| 210 | |||
| 211 | }; | ||
| 212 | |||
| 213 | #endif /* IDOBlueEnum_h */ | ||
