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/IDOBluetoothEngine.h | |
| parent | e4fb9966e762852bf17f21c8406501d42fae0b61 (diff) | |
Local iHealth SDK, device detail screen, iOS event fixes
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOBluetoothEngine.h')
| -rwxr-xr-x | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOBluetoothEngine.h | 283 |
1 files changed, 283 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOBluetoothEngine.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOBluetoothEngine.h new file mode 100755 index 0000000..fe0fd1c --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOBluetoothEngine.h | |||
| @@ -0,0 +1,283 @@ | |||
| 1 | // | ||
| 2 | // IDOBluetoothEngine.h | ||
| 3 | // VeryfitSDK | ||
| 4 | // | ||
| 5 | // Created by hedongyang on 2018/5/31. | ||
| 6 | // Copyright © 2018年 hedongyang. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import <Foundation/Foundation.h> | ||
| 10 | #import <CoreBluetooth/CoreBluetooth.h> | ||
| 11 | |||
| 12 | #if __has_include(<IDOBluetoothInternal/IDOBluetoothInternal.h>) | ||
| 13 | #elif __has_include(<IDOBlueProtocol/IDOBlueProtocol.h>) | ||
| 14 | #else | ||
| 15 | #import "IDOGetInfoBluetoothModel.h" | ||
| 16 | #endif | ||
| 17 | |||
| 18 | @interface IDOBluetoothManagerInfoEngine : NSObject | ||
| 19 | |||
| 20 | /** | ||
| 21 | * 蓝牙管理中心 | Bluetooth Management Center | ||
| 22 | */ | ||
| 23 | @property (nonatomic,strong) CBCentralManager * centralManager; | ||
| 24 | |||
| 25 | /** | ||
| 26 | * 外围设备 | Peripherals | ||
| 27 | */ | ||
| 28 | @property (nonatomic,strong) CBPeripheral * peripheral; | ||
| 29 | |||
| 30 | /** | ||
| 31 | * 蓝牙是否开启 | Is Bluetooth enabled? | ||
| 32 | */ | ||
| 33 | @property (nonatomic,assign,readonly,getter=isPoweredOn) BOOL poweredOn; | ||
| 34 | |||
| 35 | /** | ||
| 36 | * 蓝牙是否连接 | Bluetooth is connected | ||
| 37 | */ | ||
| 38 | @property (nonatomic,assign,readonly,getter=isConnected) BOOL connected; | ||
| 39 | |||
| 40 | /** | ||
| 41 | * 蓝牙是否正在连接中 | Bluetooth is connecting | ||
| 42 | */ | ||
| 43 | @property (nonatomic,assign,readonly,getter=isConnecting) BOOL connecting; | ||
| 44 | |||
| 45 | /** | ||
| 46 | * 命令服务特征 | Command Service Features | ||
| 47 | */ | ||
| 48 | @property (nonatomic,strong) CBCharacteristic * commandCharacteristic; | ||
| 49 | |||
| 50 | /** | ||
| 51 | * 健康服务特征 | Health Service Features | ||
| 52 | */ | ||
| 53 | @property (nonatomic,strong) CBCharacteristic * healthCharacteristic; | ||
| 54 | |||
| 55 | /** | ||
| 56 | * 锐捷定制发送服务特征 | Ruijie write service Features | ||
| 57 | */ | ||
| 58 | @property (nonatomic,strong) CBCharacteristic * customWriteCharacteristic; | ||
| 59 | |||
| 60 | /** | ||
| 61 | * 功能列表 | Function List | ||
| 62 | */ | ||
| 63 | @property (nonatomic,strong) IDOGetDeviceFuncBluetoothModel * funcTableModel; | ||
| 64 | |||
| 65 | @end | ||
| 66 | |||
| 67 | @interface IDOBluetoothPeripheralInfoEngine : NSObject | ||
| 68 | |||
| 69 | /** | ||
| 70 | * 当前连接外围设备的uuid | uuid currently connected to peripherals | ||
| 71 | */ | ||
| 72 | @property (nonatomic,copy) NSString * uuidStr; | ||
| 73 | |||
| 74 | /** | ||
| 75 | * 当前连接设备ID | Current connection device ID | ||
| 76 | */ | ||
| 77 | @property (nonatomic,copy) NSString * deviceId; | ||
| 78 | |||
| 79 | /** | ||
| 80 | * 当前连接设备名字 | Current connected device name | ||
| 81 | */ | ||
| 82 | @property (nonatomic,copy) NSString * deviceName; | ||
| 83 | |||
| 84 | /** | ||
| 85 | * 当前连接设备固件版本号 | Current connected device firmware version number | ||
| 86 | */ | ||
| 87 | @property (nonatomic,copy) NSString * version; | ||
| 88 | |||
| 89 | /** | ||
| 90 | * 当前连接设备Mac地址 | Currently connected device Mac address | ||
| 91 | */ | ||
| 92 | @property (nonatomic,copy) NSString * macAddr; | ||
| 93 | |||
| 94 | /** | ||
| 95 | * 当前连接设备授权码 | Currently connected device authorization code | ||
| 96 | */ | ||
| 97 | @property (nonatomic,copy) NSString * authCode; | ||
| 98 | |||
| 99 | /** | ||
| 100 | * 当前设备连接成功的时间 | The time the current device was successfully connected | ||
| 101 | */ | ||
| 102 | @property (nonatomic,strong) NSDate * connectedDate; | ||
| 103 | |||
| 104 | /** | ||
| 105 | * 当前连接设备模式 | Current connected device mode | ||
| 106 | */ | ||
| 107 | @property (nonatomic,assign) NSInteger deviceMode; | ||
| 108 | |||
| 109 | /** | ||
| 110 | * 当前连接设备状态 | Current connected device status | ||
| 111 | */ | ||
| 112 | @property (nonatomic,assign) NSInteger battStatus; | ||
| 113 | |||
| 114 | /** | ||
| 115 | * 当前连接设备电量 | Current connected device power | ||
| 116 | */ | ||
| 117 | @property (nonatomic,assign) NSInteger battLevel; | ||
| 118 | |||
| 119 | /** | ||
| 120 | * 当前连接设备是否重启 | Is the current connected device restarted? | ||
| 121 | */ | ||
| 122 | @property (nonatomic,assign) NSInteger rebootFlag; | ||
| 123 | |||
| 124 | /** | ||
| 125 | * 当前连接设备授权码长度 | Current connection device authorization code length | ||
| 126 | */ | ||
| 127 | @property (nonatomic,assign) NSInteger authLength; | ||
| 128 | |||
| 129 | /** | ||
| 130 | * 当前设备绑定的时间戳 | Current connection device binding timestamp | ||
| 131 | */ | ||
| 132 | @property (nonatomic,assign) NSInteger bindTime; | ||
| 133 | |||
| 134 | /** | ||
| 135 | * 手环的平台 | platform for bracelet | ||
| 136 | * 0:nordic, 10:realtek 8762x ,20:cypress psoc6,30:Apollo3 | ||
| 137 | */ | ||
| 138 | @property (nonatomic,assign) NSInteger platform; | ||
| 139 | |||
| 140 | /** | ||
| 141 | * 当前连接设备是否绑定 | Is the current connected device bound? | ||
| 142 | */ | ||
| 143 | @property (nonatomic,assign) BOOL isBind; | ||
| 144 | |||
| 145 | /** | ||
| 146 | * 当前连接设备是否配对中 | Is the current connected device pairing? | ||
| 147 | */ | ||
| 148 | @property (nonatomic,assign) BOOL isPairing; | ||
| 149 | |||
| 150 | /** | ||
| 151 | * 当前连接设备是否ota | Is the current connected device ota? | ||
| 152 | */ | ||
| 153 | @property (nonatomic,assign) BOOL isOta; | ||
| 154 | |||
| 155 | @end | ||
| 156 | |||
| 157 | @interface IDOBluetoothUserInfoEngine : NSObject | ||
| 158 | |||
| 159 | /** | ||
| 160 | * 用户ID | User ID | ||
| 161 | */ | ||
| 162 | @property (nonatomic,copy) NSString * userId; | ||
| 163 | |||
| 164 | /** | ||
| 165 | * 用户生日 (例如:2018-10-01) | | User birthday (example: 2018-10-01) | ||
| 166 | */ | ||
| 167 | @property (nonatomic,copy) NSString * birthday; | ||
| 168 | |||
| 169 | /** | ||
| 170 | * 用户目标步数 | User target steps | ||
| 171 | */ | ||
| 172 | @property (nonatomic,assign) NSInteger goalStepCount; | ||
| 173 | |||
| 174 | /** | ||
| 175 | * 目标睡眠 (分钟) | Target sleep (minutes) | ||
| 176 | */ | ||
| 177 | @property (nonatomic,assign) NSInteger goalSleepMinute; | ||
| 178 | |||
| 179 | /** | ||
| 180 | * 目标卡路里 | Goal Calories | ||
| 181 | */ | ||
| 182 | @property (nonatomic,assign) NSInteger goalCalorieData; | ||
| 183 | |||
| 184 | /** | ||
| 185 | * 目标距离 | Target distance | ||
| 186 | */ | ||
| 187 | @property (nonatomic,assign) NSInteger goalDistanceData; | ||
| 188 | |||
| 189 | /** | ||
| 190 | * 目标体重 (千克) | Target weight (kg) | ||
| 191 | */ | ||
| 192 | @property (nonatomic,assign) NSInteger goalWeight; | ||
| 193 | |||
| 194 | /** | ||
| 195 | * 用户性别 | User gender | ||
| 196 | */ | ||
| 197 | @property (nonatomic,assign) NSInteger sex; | ||
| 198 | |||
| 199 | /** | ||
| 200 | * 用户体重 | User weight | ||
| 201 | */ | ||
| 202 | @property (nonatomic,assign) NSInteger weight; | ||
| 203 | |||
| 204 | /** | ||
| 205 | * 用户升高 | User rises | ||
| 206 | */ | ||
| 207 | @property (nonatomic,assign) NSInteger height; | ||
| 208 | |||
| 209 | /** | ||
| 210 | * 是否登陆 | Login | ||
| 211 | */ | ||
| 212 | @property (nonatomic,assign) BOOL isLogin; | ||
| 213 | |||
| 214 | @end | ||
| 215 | |||
| 216 | @interface IDOBluetoothAppInfoEngine : NSObject | ||
| 217 | |||
| 218 | /** | ||
| 219 | * 设备名字 | Device Name | ||
| 220 | */ | ||
| 221 | @property (nonatomic,copy) NSString * iphoneName; | ||
| 222 | |||
| 223 | /** | ||
| 224 | * 手机系统版本 | Mobile phone system version | ||
| 225 | */ | ||
| 226 | @property (nonatomic,copy) NSString * sysVersion; | ||
| 227 | |||
| 228 | /** | ||
| 229 | * sdk版本 | sdk version | ||
| 230 | */ | ||
| 231 | @property (nonatomic,copy) NSString * sdkVersion; | ||
| 232 | |||
| 233 | @end | ||
| 234 | |||
| 235 | @interface IDOBluetoothUnitInfoEngine : NSObject | ||
| 236 | |||
| 237 | /** | ||
| 238 | * 时间格式是否12小时制 | Is the time format 12-hour format? | ||
| 239 | */ | ||
| 240 | @property (nonatomic,assign) BOOL is12Hour; | ||
| 241 | |||
| 242 | /** | ||
| 243 | * 语言单位 | Language unit | ||
| 244 | */ | ||
| 245 | @property (nonatomic,assign) NSInteger language; | ||
| 246 | |||
| 247 | /** | ||
| 248 | * 距离单位 | Distance unit | ||
| 249 | */ | ||
| 250 | @property (nonatomic,assign) NSInteger distUnit; | ||
| 251 | |||
| 252 | /** | ||
| 253 | * 体重单位 | Weight unit | ||
| 254 | */ | ||
| 255 | @property (nonatomic,assign) NSInteger weightUnit; | ||
| 256 | |||
| 257 | /** | ||
| 258 | * 温度单位 | Temperature unit | ||
| 259 | */ | ||
| 260 | @property (nonatomic,assign) NSInteger tempUnit; | ||
| 261 | |||
| 262 | /** | ||
| 263 | * 走路步伐单位 | Walking pace unit | ||
| 264 | */ | ||
| 265 | @property (nonatomic,assign) NSInteger strideWalkUnit; | ||
| 266 | |||
| 267 | /** | ||
| 268 | * 跑步步伐单位 | Running pace unit | ||
| 269 | */ | ||
| 270 | @property (nonatomic,assign) NSInteger strideRunUnit; | ||
| 271 | |||
| 272 | @end | ||
| 273 | |||
| 274 | @interface IDOBluetoothEngine : NSObject | ||
| 275 | + (IDOBluetoothEngine *)shareInstance; | ||
| 276 | - (void)deserialization; | ||
| 277 | @property (nonatomic,strong) IDOBluetoothManagerInfoEngine * managerEngine; | ||
| 278 | @property (nonatomic,strong) IDOBluetoothPeripheralInfoEngine * peripheralEngine; | ||
| 279 | @property (nonatomic,strong) IDOBluetoothUserInfoEngine * userEngine; | ||
| 280 | @property (nonatomic,strong) IDOBluetoothAppInfoEngine * appEngine; | ||
| 281 | @property (nonatomic,strong) IDOBluetoothUnitInfoEngine * unitEngine; | ||
| 282 | @end | ||
| 283 | |||
