capacitor-plugin-ihealth 1.1.0
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.
- package/CapacitorPluginIhealth.podspec +35 -0
- package/README.md +214 -0
- package/android/build.gradle +58 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/java/com/managemyhealth/plugins/ihealth/ihealth.java +11 -0
- package/android/src/main/java/com/managemyhealth/plugins/ihealth/ihealthPlugin.java +22 -0
- package/android/src/main/res/.gitkeep +0 -0
- package/dist/docs.json +450 -0
- package/dist/esm/definitions.d.ts +29 -0
- package/dist/esm/definitions.js +2 -0
- package/dist/esm/definitions.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/web.d.ts +37 -0
- package/dist/esm/web.js +42 -0
- package/dist/esm/web.js.map +1 -0
- package/dist/plugin.cjs.js +58 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +61 -0
- package/dist/plugin.js.map +1 -0
- package/ios/Plugin/Info.plist +24 -0
- package/ios/Plugin/Plugin-Bridging-Header.h +35 -0
- package/ios/Plugin/iHealthSDKHeaders/ABI.h +82 -0
- package/ios/Plugin/iHealthSDKHeaders/ABIController.h +28 -0
- package/ios/Plugin/iHealthSDKHeaders/ABPM.h +144 -0
- package/ios/Plugin/iHealthSDKHeaders/ABPMController.h +25 -0
- package/ios/Plugin/iHealthSDKHeaders/AM3.h +188 -0
- package/ios/Plugin/iHealthSDKHeaders/AM3Controller.h +29 -0
- package/ios/Plugin/iHealthSDKHeaders/AM3SController_V2.h +29 -0
- package/ios/Plugin/iHealthSDKHeaders/AM3S_V2.h +227 -0
- package/ios/Plugin/iHealthSDKHeaders/AM4.h +223 -0
- package/ios/Plugin/iHealthSDKHeaders/AM4Controller.h +31 -0
- package/ios/Plugin/iHealthSDKHeaders/AM5.h +335 -0
- package/ios/Plugin/iHealthSDKHeaders/AM5Controller.h +30 -0
- package/ios/Plugin/iHealthSDKHeaders/AM5Header.h +20 -0
- package/ios/Plugin/iHealthSDKHeaders/AMHeader.h +27 -0
- package/ios/Plugin/iHealthSDKHeaders/AMMacroFile.h +1171 -0
- package/ios/Plugin/iHealthSDKHeaders/BG1.h +53 -0
- package/ios/Plugin/iHealthSDKHeaders/BG1Controller.h +46 -0
- package/ios/Plugin/iHealthSDKHeaders/BG1S.h +64 -0
- package/ios/Plugin/iHealthSDKHeaders/BG1SController.h +25 -0
- package/ios/Plugin/iHealthSDKHeaders/BG3.h +83 -0
- package/ios/Plugin/iHealthSDKHeaders/BG3Controller.h +28 -0
- package/ios/Plugin/iHealthSDKHeaders/BG5.h +158 -0
- package/ios/Plugin/iHealthSDKHeaders/BG5Controller.h +28 -0
- package/ios/Plugin/iHealthSDKHeaders/BG5S.h +294 -0
- package/ios/Plugin/iHealthSDKHeaders/BG5SController.h +29 -0
- package/ios/Plugin/iHealthSDKHeaders/BGController.h +32 -0
- package/ios/Plugin/iHealthSDKHeaders/BGDevice.h +42 -0
- package/ios/Plugin/iHealthSDKHeaders/BGHeader.h +23 -0
- package/ios/Plugin/iHealthSDKHeaders/BGMacroFile.h +507 -0
- package/ios/Plugin/iHealthSDKHeaders/BP3.h +77 -0
- package/ios/Plugin/iHealthSDKHeaders/BP3Controller.h +27 -0
- package/ios/Plugin/iHealthSDKHeaders/BP3L.h +58 -0
- package/ios/Plugin/iHealthSDKHeaders/BP3LController.h +30 -0
- package/ios/Plugin/iHealthSDKHeaders/BP5.h +32 -0
- package/ios/Plugin/iHealthSDKHeaders/BP5C.h +131 -0
- package/ios/Plugin/iHealthSDKHeaders/BP5CController.h +25 -0
- package/ios/Plugin/iHealthSDKHeaders/BP5Controller.h +25 -0
- package/ios/Plugin/iHealthSDKHeaders/BP5S.h +97 -0
- package/ios/Plugin/iHealthSDKHeaders/BP5SController.h +27 -0
- package/ios/Plugin/iHealthSDKHeaders/BP5SRW.h +101 -0
- package/ios/Plugin/iHealthSDKHeaders/BP5SRWController.h +26 -0
- package/ios/Plugin/iHealthSDKHeaders/BP7.h +141 -0
- package/ios/Plugin/iHealthSDKHeaders/BP7Controller.h +25 -0
- package/ios/Plugin/iHealthSDKHeaders/BP7S.h +106 -0
- package/ios/Plugin/iHealthSDKHeaders/BP7SController.h +32 -0
- package/ios/Plugin/iHealthSDKHeaders/BPAV10Device.h +15 -0
- package/ios/Plugin/iHealthSDKHeaders/BPBTLEDevice.h +17 -0
- package/ios/Plugin/iHealthSDKHeaders/BPBV10Device.h +20 -0
- package/ios/Plugin/iHealthSDKHeaders/BPContinua.h +56 -0
- package/ios/Plugin/iHealthSDKHeaders/BPContinuaController.h +30 -0
- package/ios/Plugin/iHealthSDKHeaders/BPController.h +40 -0
- package/ios/Plugin/iHealthSDKHeaders/BPDevice.h +131 -0
- package/ios/Plugin/iHealthSDKHeaders/BPHeader.h +54 -0
- package/ios/Plugin/iHealthSDKHeaders/BPLoopMeasureSettingModel.h +120 -0
- package/ios/Plugin/iHealthSDKHeaders/BPM1AE.h +80 -0
- package/ios/Plugin/iHealthSDKHeaders/BPMacroFile.h +247 -0
- package/ios/Plugin/iHealthSDKHeaders/BPV24Device.h +16 -0
- package/ios/Plugin/iHealthSDKHeaders/BPV25Device.h +17 -0
- package/ios/Plugin/iHealthSDKHeaders/ConnectDeviceController.h +27 -0
- package/ios/Plugin/iHealthSDKHeaders/DFUController.h +160 -0
- package/ios/Plugin/iHealthSDKHeaders/DFUDeviceFirmwareInfo.h +56 -0
- package/ios/Plugin/iHealthSDKHeaders/DFUHeader.h +19 -0
- package/ios/Plugin/iHealthSDKHeaders/DFUMacro.h +264 -0
- package/ios/Plugin/iHealthSDKHeaders/DFUServerFirmwareInfo.h +48 -0
- package/ios/Plugin/iHealthSDKHeaders/ECG3.h +94 -0
- package/ios/Plugin/iHealthSDKHeaders/ECG3Controller.h +30 -0
- package/ios/Plugin/iHealthSDKHeaders/ECG3USB.h +145 -0
- package/ios/Plugin/iHealthSDKHeaders/ECG3USBController.h +31 -0
- package/ios/Plugin/iHealthSDKHeaders/ECGHeader.h +20 -0
- package/ios/Plugin/iHealthSDKHeaders/ECGMacroFile.h +84 -0
- package/ios/Plugin/iHealthSDKHeaders/HFSmartLink.h +88 -0
- package/ios/Plugin/iHealthSDKHeaders/HFSmartLinkDeviceInfo.h +14 -0
- package/ios/Plugin/iHealthSDKHeaders/HS2.h +64 -0
- package/ios/Plugin/iHealthSDKHeaders/HS2Controller.h +25 -0
- package/ios/Plugin/iHealthSDKHeaders/HS2S.h +399 -0
- package/ios/Plugin/iHealthSDKHeaders/HS2SController.h +27 -0
- package/ios/Plugin/iHealthSDKHeaders/HS3.h +63 -0
- package/ios/Plugin/iHealthSDKHeaders/HS3Controller.h +32 -0
- package/ios/Plugin/iHealthSDKHeaders/HS4.h +64 -0
- package/ios/Plugin/iHealthSDKHeaders/HS4Controller.h +26 -0
- package/ios/Plugin/iHealthSDKHeaders/HS5.h +141 -0
- package/ios/Plugin/iHealthSDKHeaders/HS5Controller.h +38 -0
- package/ios/Plugin/iHealthSDKHeaders/HSHeader.h +25 -0
- package/ios/Plugin/iHealthSDKHeaders/HSMacroFile.h +709 -0
- package/ios/Plugin/iHealthSDKHeaders/HealthHeader.h +67 -0
- package/ios/Plugin/iHealthSDKHeaders/HealthUser.h +126 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOBindEnum.h +49 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOBlueDataResponse.h +66 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOBlueEnum.h +213 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothBaseModel.h +112 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothEngine.h +283 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothManager.h +166 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothServices.h +75 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOCalculateBluetoothModel.h +263 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOCommonMacro.h +89 -0
- package/ios/Plugin/iHealthSDKHeaders/IDODataExchangeModel.h +128 -0
- package/ios/Plugin/iHealthSDKHeaders/IDODataMigrationManager.h +79 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOErrorCodeToStr.h +19 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOFoundationCommand.h +1178 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOGetInfoBluetoothModel.h +1924 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOLogEnum.h +165 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOPeripheralModel.h +59 -0
- package/ios/Plugin/iHealthSDKHeaders/IDORecordDeviceLog.h +56 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSetInfoBluetoothModel.h +1760 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSyncActivityDataModel.h +207 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSyncBpDataModel.h +191 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSyncEnum.h +316 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSyncGpsDataModel.h +133 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSyncHeartRateDataModel.h +442 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSyncManager.h +161 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSyncPressureDataModel.h +158 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSyncSleepDataModel.h +224 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSyncSpo2DataModel.h +175 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSyncSportDataModel.h +221 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSyncSwimDataModel.h +188 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOTranEnum.h +93 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOTransferFileManager.h +116 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOWatchDialInfoModel.h +95 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOWatchDialManager.h +75 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOWeightBluetoothModel.h +124 -0
- package/ios/Plugin/iHealthSDKHeaders/IHSDKCloudUser.h +104 -0
- package/ios/Plugin/iHealthSDKHeaders/KN550BT.h +115 -0
- package/ios/Plugin/iHealthSDKHeaders/KN550BTController.h +32 -0
- package/ios/Plugin/iHealthSDKHeaders/ManageDeviceController.h +34 -0
- package/ios/Plugin/iHealthSDKHeaders/NT13B.h +33 -0
- package/ios/Plugin/iHealthSDKHeaders/NT13BController.h +28 -0
- package/ios/Plugin/iHealthSDKHeaders/NT13BHeader.h +16 -0
- package/ios/Plugin/iHealthSDKHeaders/NT13BMacroFile.h +34 -0
- package/ios/Plugin/iHealthSDKHeaders/PO1.h +82 -0
- package/ios/Plugin/iHealthSDKHeaders/PO1Controller.h +29 -0
- package/ios/Plugin/iHealthSDKHeaders/PO3.h +96 -0
- package/ios/Plugin/iHealthSDKHeaders/PO3Controller.h +29 -0
- package/ios/Plugin/iHealthSDKHeaders/POHeader.h +20 -0
- package/ios/Plugin/iHealthSDKHeaders/POMacroFile.h +142 -0
- package/ios/Plugin/iHealthSDKHeaders/PT3SBT.h +167 -0
- package/ios/Plugin/iHealthSDKHeaders/PT3SBTController.h +27 -0
- package/ios/Plugin/iHealthSDKHeaders/PT3SBTMacroFile.h +92 -0
- package/ios/Plugin/iHealthSDKHeaders/SDKFlowUpdateDevice.h +196 -0
- package/ios/Plugin/iHealthSDKHeaders/SDKInfo.h +30 -0
- package/ios/Plugin/iHealthSDKHeaders/SDKUpdateDevice.h +235 -0
- package/ios/Plugin/iHealthSDKHeaders/ScanDeviceController.h +47 -0
- package/ios/Plugin/iHealthSDKHeaders/THV3.h +104 -0
- package/ios/Plugin/iHealthSDKHeaders/THV3Controller.h +30 -0
- package/ios/Plugin/iHealthSDKHeaders/THV3Macro.h +17 -0
- package/ios/Plugin/iHealthSDKHeaders/TS28B.h +26 -0
- package/ios/Plugin/iHealthSDKHeaders/TS28BController.h +142 -0
- package/ios/Plugin/iHealthSDKHeaders/TS28BHeader.h +15 -0
- package/ios/Plugin/iHealthSDKHeaders/iHealthHS6.h +174 -0
- package/ios/Plugin/ihealth.swift +8 -0
- package/ios/Plugin/ihealthPlugin.h +10 -0
- package/ios/Plugin/ihealthPlugin.m +16 -0
- package/ios/Plugin/ihealthPlugin.swift +1502 -0
- package/ios/Plugin/libiHealthSDK2.7.8.a +0 -0
- package/ios/Plugin/test.m +9 -0
- package/package.json +78 -0
@@ -0,0 +1,116 @@
|
|
1
|
+
//
|
2
|
+
// IDOTransferFileManager.h
|
3
|
+
// IDOBluetooth
|
4
|
+
//
|
5
|
+
// Created by hedongyang on 2018/9/30.
|
6
|
+
// Copyright © 2018年 apple. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import <Foundation/Foundation.h>
|
10
|
+
#if __has_include(<IDOBluetoothInternal/IDOBluetoothInternal.h>)
|
11
|
+
#elif __has_include(<IDOBlueProtocol/IDOBlueProtocol.h>)
|
12
|
+
#else
|
13
|
+
#import "IDOTranEnum.h"
|
14
|
+
#endif
|
15
|
+
|
16
|
+
@interface IDOTransferFileManager : NSObject
|
17
|
+
|
18
|
+
/**
|
19
|
+
* 传输文件类型 agps文件、表盘文件、字库文件、图片文件
|
20
|
+
* Transfer file type agps file, dial file
|
21
|
+
*/
|
22
|
+
@property (nonatomic,assign) IDO_DATA_FILE_TRAN_TYPE transferType;
|
23
|
+
|
24
|
+
/**
|
25
|
+
* 传输文件压缩类型 不适用压缩、zlib压缩、fastlz压缩
|
26
|
+
* Transfer file compression types not suitable for compression, zlib compression, fastlz compression
|
27
|
+
*/
|
28
|
+
@property (nonatomic,assign) IDO_DATA_TRAN_COMPRESSION_TYPE compressionType;
|
29
|
+
|
30
|
+
/**
|
31
|
+
* 传输文件过程状态
|
32
|
+
* Transfer file process status
|
33
|
+
*/
|
34
|
+
@property (nonatomic,assign) IDO_DATA_FILE_TRAN_STATE_TYPE tranStateType;
|
35
|
+
|
36
|
+
/**
|
37
|
+
* 设置传输文件包文个数 默认 10
|
38
|
+
* Set the number of transfer file packet default 10
|
39
|
+
*/
|
40
|
+
@property (nonatomic,assign) NSInteger numberPackets;
|
41
|
+
|
42
|
+
/**
|
43
|
+
* 传输文件名称
|
44
|
+
* Transfer file name
|
45
|
+
*/
|
46
|
+
@property (nonatomic,copy,nullable) NSString * fileName;
|
47
|
+
|
48
|
+
/**
|
49
|
+
* 传输文件路径
|
50
|
+
* Transfer file path
|
51
|
+
*/
|
52
|
+
@property (nonatomic,copy,nullable) NSString * filePath;
|
53
|
+
|
54
|
+
/*
|
55
|
+
* 传输文件的二进制数据
|
56
|
+
* Transfer the binary data of the file
|
57
|
+
*/
|
58
|
+
@property (nonatomic,copy,nullable) NSData * fileData;
|
59
|
+
|
60
|
+
/**
|
61
|
+
* 蓝牙写入数据是否响应
|
62
|
+
* Bluetooth sends data in response
|
63
|
+
*/
|
64
|
+
@property (nonatomic,assign) BOOL isResponse;
|
65
|
+
|
66
|
+
/**
|
67
|
+
* 是否设置连接参数
|
68
|
+
* Set connection parameters
|
69
|
+
*/
|
70
|
+
@property (nonatomic,assign) BOOL isSetConnectParam;
|
71
|
+
|
72
|
+
/**
|
73
|
+
* 检测文件回调
|
74
|
+
* Detect file callback
|
75
|
+
*/
|
76
|
+
@property (nonatomic,copy,nullable) IDOTransferFileManager *_Nonnull(^addDetection)(void(^ _Nullable detectionCallback)(int errorCode));
|
77
|
+
|
78
|
+
/**
|
79
|
+
* 文件传输进度回调 (1-100)
|
80
|
+
* file transfer progress (1-100)
|
81
|
+
*/
|
82
|
+
@property (nonatomic,copy,nullable) IDOTransferFileManager *_Nonnull(^addProgress)(void(^ _Nullable progressCallback)(int progress));
|
83
|
+
|
84
|
+
/**
|
85
|
+
* 文件传输完成回调
|
86
|
+
* File transfer complete callback
|
87
|
+
*/
|
88
|
+
@property (nonatomic,copy,nullable) IDOTransferFileManager *_Nonnull(^addTransfer)(void(^ _Nullable transferComplete)(int errorCode));
|
89
|
+
|
90
|
+
/**
|
91
|
+
* 文件写入完成回调 agps文件传输完成后需要查询写入状态
|
92
|
+
* File write complete callback
|
93
|
+
*/
|
94
|
+
@property (nonatomic,copy,nullable) IDOTransferFileManager *_Nonnull(^addWrite)(void(^ _Nullable writeComplete)(int errorCode));
|
95
|
+
|
96
|
+
/**
|
97
|
+
* 初始化传输文件管理对象(单例)
|
98
|
+
* Initialize the transfer file management object (singleton)
|
99
|
+
*/
|
100
|
+
IDOTransferFileManager * _Nonnull initTransferManager(void);
|
101
|
+
|
102
|
+
/**
|
103
|
+
* 文件开始传输
|
104
|
+
* file start transfer
|
105
|
+
*/
|
106
|
+
+ (void)startTransfer;
|
107
|
+
|
108
|
+
/**
|
109
|
+
* 文件结束传输
|
110
|
+
* file stop transfer
|
111
|
+
*/
|
112
|
+
+ (void)stopTransfer;
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
@end
|
@@ -0,0 +1,95 @@
|
|
1
|
+
//
|
2
|
+
// IDOWatchDialInfoModel.h
|
3
|
+
// IDOBluetoothInternal
|
4
|
+
//
|
5
|
+
// Created by 何东阳 on 2019/8/21.
|
6
|
+
// Copyright © 2019 何东阳. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#if __has_include(<IDOBluetoothInternal/IDOBluetoothInternal.h>)
|
10
|
+
#elif __has_include(<IDOBlueProtocol/IDOBlueProtocol.h>)
|
11
|
+
#else
|
12
|
+
#import "IDOBluetoothBaseModel.h"
|
13
|
+
#endif
|
14
|
+
|
15
|
+
@interface IDOWatchScreenInfoModel : IDOBluetoothBaseModel
|
16
|
+
/**
|
17
|
+
表盘家族名称 | family name
|
18
|
+
*/
|
19
|
+
@property (nonatomic,copy) NSString * familyName;
|
20
|
+
/**
|
21
|
+
宽度 | width
|
22
|
+
*/
|
23
|
+
@property (nonatomic,assign) NSInteger width;
|
24
|
+
/**
|
25
|
+
高度 | height
|
26
|
+
*/
|
27
|
+
@property (nonatomic,assign) NSInteger height;
|
28
|
+
/**
|
29
|
+
颜色格式 | color format
|
30
|
+
*/
|
31
|
+
@property (nonatomic,assign) NSInteger colorFormat;
|
32
|
+
/**
|
33
|
+
尺寸 * 100 | size * 100
|
34
|
+
*/
|
35
|
+
@property (nonatomic,assign) NSInteger size;
|
36
|
+
|
37
|
+
/**
|
38
|
+
* @brief 查询数据库,如果查询不到初始化新的model对象
|
39
|
+
* Query the database, if the query does not initialize a new model object
|
40
|
+
* @return IDOWatchScreenInfoModel
|
41
|
+
*/
|
42
|
+
+ (__kindof IDOWatchScreenInfoModel *)currentModel;
|
43
|
+
|
44
|
+
@end
|
45
|
+
|
46
|
+
@interface IDOWatchDialInfoItemModel : IDOBluetoothBaseModel
|
47
|
+
/**
|
48
|
+
表盘名称(唯一标示) | file name (only sign)
|
49
|
+
*/
|
50
|
+
@property (nonatomic,copy) NSString * fileName;
|
51
|
+
|
52
|
+
/**
|
53
|
+
* 操作 0x00:查询正在使用表盘 0x01:设置表盘 0x02:删除表盘
|
54
|
+
* Operation 0x00: query is using the dial 0x01: set the dial 0x02: delete the dial
|
55
|
+
*/
|
56
|
+
@property (nonatomic,assign) NSInteger operate;
|
57
|
+
|
58
|
+
@end
|
59
|
+
|
60
|
+
|
61
|
+
@interface IDOWatchDialInfoModel : IDOBluetoothBaseModel
|
62
|
+
/**
|
63
|
+
* 文件个数
|
64
|
+
* file count
|
65
|
+
*/
|
66
|
+
@property (nonatomic,assign) NSInteger fileCount;
|
67
|
+
/**
|
68
|
+
* 剩余空间 KB
|
69
|
+
* remaining Space
|
70
|
+
*/
|
71
|
+
@property (nonatomic,assign) NSInteger remainingSpace;
|
72
|
+
/**
|
73
|
+
* 单个文件最大size KB
|
74
|
+
* file max size
|
75
|
+
*/
|
76
|
+
@property (nonatomic,assign) NSInteger fileMaxSize;
|
77
|
+
/**
|
78
|
+
* 当前设置的表盘名称
|
79
|
+
* name of the dial currently set
|
80
|
+
*/
|
81
|
+
@property (nonatomic,copy) NSString * currentDialName;
|
82
|
+
/**
|
83
|
+
* 当前手环所有表盘信息集合
|
84
|
+
* Current bracelet all dial information set
|
85
|
+
*/
|
86
|
+
@property (nonatomic,strong) NSArray <IDOWatchDialInfoItemModel *>* dialArray;
|
87
|
+
|
88
|
+
/**
|
89
|
+
* @brief 查询数据库,如果查询不到初始化新的model对象
|
90
|
+
* Query the database, if the query does not initialize a new model object
|
91
|
+
* @return IDOWatchDialInfoModel
|
92
|
+
*/
|
93
|
+
+ (__kindof IDOWatchDialInfoModel *)currentModel;
|
94
|
+
|
95
|
+
@end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
//
|
2
|
+
// IDOWatchDialManager.h
|
3
|
+
// IDOBluetoothInternal
|
4
|
+
//
|
5
|
+
// Created by 何东阳 on 2019/8/21.
|
6
|
+
// Copyright © 2019 何东阳. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import <Foundation/Foundation.h>
|
10
|
+
|
11
|
+
typedef void(^ _Nullable setComplete)(IDOWatchDialInfoModel * _Nullable model,int errorCode);
|
12
|
+
|
13
|
+
@interface IDOWatchDialManager : NSObject
|
14
|
+
|
15
|
+
/**
|
16
|
+
* 表盘文件传输路径 (zip)
|
17
|
+
* Transfer file path
|
18
|
+
*/
|
19
|
+
@property (nonatomic,copy,nullable) NSString * filePath;
|
20
|
+
|
21
|
+
/**
|
22
|
+
* 获取当前设备屏幕信息
|
23
|
+
* Gets the current device screen information
|
24
|
+
*/
|
25
|
+
@property (nonatomic,copy,nullable) IDOWatchDialManager *_Nonnull(^getDialScreenInfo)(void(^ _Nullable dialScreenCallback)(IDOWatchScreenInfoModel * _Nullable model,int errorCode));
|
26
|
+
|
27
|
+
/**
|
28
|
+
* 获取当前设备所有表盘信息
|
29
|
+
* Gets all dial information of the current device
|
30
|
+
*/
|
31
|
+
@property (nonatomic,copy,nullable) IDOWatchDialManager *_Nonnull(^getDialListInfo)(void(^ _Nullable dialListCallback)(IDOWatchDialInfoModel * _Nullable model,int errorCode));
|
32
|
+
|
33
|
+
/**
|
34
|
+
* 获取当前设备当前表盘信息
|
35
|
+
* Gets current dial information of the current device
|
36
|
+
*/
|
37
|
+
@property (nonatomic,copy,nullable) IDOWatchDialManager *_Nonnull(^getCurrentDialInfo)(void(^ _Nullable currentDialCallback)(IDOWatchDialInfoModel * _Nullable model,int errorCode));
|
38
|
+
|
39
|
+
/**
|
40
|
+
* 设置当前表盘并回调
|
41
|
+
* Set the current dial and call back
|
42
|
+
*/
|
43
|
+
@property (nonatomic,copy,nullable) IDOWatchDialManager *_Nonnull(^setCurrentDial)(setComplete block,IDOWatchDialInfoItemModel * _Nullable model);
|
44
|
+
|
45
|
+
/**
|
46
|
+
* 表盘传输进度回调 (1-100)
|
47
|
+
* file transfer progress (1-100)
|
48
|
+
*/
|
49
|
+
@property (nonatomic,copy,nullable) IDOWatchDialManager *_Nonnull(^addDialProgress)(void(^ _Nullable progressCallback)(int progress));
|
50
|
+
|
51
|
+
/**
|
52
|
+
* 表盘传输完成回调
|
53
|
+
* File transfer complete callback
|
54
|
+
*/
|
55
|
+
@property (nonatomic,copy,nullable) IDOWatchDialManager *_Nonnull(^addDialTransfer)(void(^ _Nullable transferComplete)(int errorCode));
|
56
|
+
|
57
|
+
/**
|
58
|
+
* 初始化表盘传输管理对象(单例)
|
59
|
+
* Initialize the transfer file management object (singleton)
|
60
|
+
*/
|
61
|
+
IDOWatchDialManager * _Nonnull initWatchDialManager(void);
|
62
|
+
|
63
|
+
/**
|
64
|
+
* 表盘开始传输
|
65
|
+
* file start transfer
|
66
|
+
*/
|
67
|
+
+ (void)startDialTransfer;
|
68
|
+
|
69
|
+
/**
|
70
|
+
* 表盘结束传输
|
71
|
+
* file stop transfer
|
72
|
+
*/
|
73
|
+
+ (void)stopDialTransfer;
|
74
|
+
|
75
|
+
@end
|
@@ -0,0 +1,124 @@
|
|
1
|
+
//
|
2
|
+
// IDOWeightBluetoothModel.h
|
3
|
+
// IDOBluetooth
|
4
|
+
//
|
5
|
+
// Created by 何东阳 on 2018/10/27.
|
6
|
+
// Copyright © 2018年 apple. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#if __has_include(<IDOBluetoothInternal/IDOBluetoothInternal.h>)
|
10
|
+
#elif __has_include(<IDOBlueProtocol/IDOBlueProtocol.h>)
|
11
|
+
#else
|
12
|
+
#import "IDOBluetoothBaseModel.h"
|
13
|
+
#endif
|
14
|
+
|
15
|
+
@interface IDOWeightBluetoothModel : IDOBluetoothBaseModel
|
16
|
+
|
17
|
+
/**
|
18
|
+
年份 | Year
|
19
|
+
*/
|
20
|
+
@property (nonatomic,assign) NSInteger year;
|
21
|
+
|
22
|
+
/**
|
23
|
+
月份 | Month
|
24
|
+
*/
|
25
|
+
@property (nonatomic,assign) NSInteger month;
|
26
|
+
|
27
|
+
/**
|
28
|
+
日期 | Date
|
29
|
+
*/
|
30
|
+
@property (nonatomic,assign) NSInteger day;
|
31
|
+
|
32
|
+
/*
|
33
|
+
* 日期时间戳 time interval since 1970 (如:1444361933)
|
34
|
+
* Date Timestamp time interval since 1970 (eg 14442361933)
|
35
|
+
*/
|
36
|
+
@property (nonatomic,copy) NSString * dateStr;
|
37
|
+
|
38
|
+
/*
|
39
|
+
* 时间戳 time interval since 1970 (如:1444361933)
|
40
|
+
* Timestamp time interval since 1970 (eg: 14443361933)
|
41
|
+
*/
|
42
|
+
@property (nonatomic,copy) NSString * timeStamp;
|
43
|
+
|
44
|
+
/*
|
45
|
+
体重值 | Weight value
|
46
|
+
*/
|
47
|
+
@property (nonatomic,copy) NSString * weightValue;
|
48
|
+
|
49
|
+
/*
|
50
|
+
体重单位 0是磅 1是公斤 | Weight unit 0 is pound 1 is kg
|
51
|
+
*/
|
52
|
+
@property (nonatomic,copy) NSString * weightUnit;
|
53
|
+
|
54
|
+
/*
|
55
|
+
最后一次记录的体重单位 0是磅 1是公斤 | Last recorded weight unit 0 is pound 1 is kg
|
56
|
+
*/
|
57
|
+
@property (nonatomic,copy) NSString * lastWeightUnit;
|
58
|
+
|
59
|
+
/*
|
60
|
+
最后一次记录的体重 | Last recorded weight
|
61
|
+
*/
|
62
|
+
@property (nonatomic,copy) NSString * lastWeightValue;
|
63
|
+
|
64
|
+
/*
|
65
|
+
手动输入? | Manual input
|
66
|
+
*/
|
67
|
+
@property (nonatomic,assign) BOOL isHandsRecord;
|
68
|
+
|
69
|
+
/*
|
70
|
+
BMI
|
71
|
+
*/
|
72
|
+
@property (nonatomic,copy) NSString * bmi;
|
73
|
+
|
74
|
+
/*
|
75
|
+
体脂率 | Body fat rate
|
76
|
+
*/
|
77
|
+
@property (nonatomic,copy) NSString * bodyFat;
|
78
|
+
|
79
|
+
/*
|
80
|
+
内脏脂肪 | Visceral fat
|
81
|
+
*/
|
82
|
+
@property (nonatomic,copy) NSString * visFat;
|
83
|
+
|
84
|
+
/*
|
85
|
+
体水分 | Body water
|
86
|
+
*/
|
87
|
+
@property (nonatomic,copy) NSString * water;
|
88
|
+
|
89
|
+
/*
|
90
|
+
蛋白质 | Protein
|
91
|
+
*/
|
92
|
+
@property (nonatomic,copy) NSString * protein;
|
93
|
+
|
94
|
+
/*
|
95
|
+
骨量 | Bone mass
|
96
|
+
*/
|
97
|
+
@property (nonatomic,copy) NSString * bone;
|
98
|
+
|
99
|
+
/**
|
100
|
+
* @brief 查询数据库,如果查询不到初始化新的model对象
|
101
|
+
* Query the database, if the query does not initialize a new model object
|
102
|
+
* @return IDOUserWeightModel
|
103
|
+
*/
|
104
|
+
+ (__kindof IDOWeightBluetoothModel *)currentModel;
|
105
|
+
|
106
|
+
/**
|
107
|
+
* @brief 查询指定日期前七次体重数据,如果没有数据会初始化体重为0的数据对象
|
108
|
+
* Query the weight data seven times before the specified date, if there is no data, initialize the data object with weight 0
|
109
|
+
* @return IDOUserWeightModel
|
110
|
+
*/
|
111
|
+
+ (NSArray <__kindof IDOWeightBluetoothModel *>*)querySevenTimesRecentlyWithDateStr:(NSString *)dateStr;
|
112
|
+
|
113
|
+
/**
|
114
|
+
* @brief 查询当前设备某天体重详情数据 | Query current device weight data for one day
|
115
|
+
* @param year 年份 | year
|
116
|
+
* @param month 月份 | month
|
117
|
+
* @param day 日期 | day
|
118
|
+
* @return 体重详情数据 | Weight details data
|
119
|
+
*/
|
120
|
+
+ (__kindof IDOWeightBluetoothModel *)queryOneDayDataWithYear:(NSInteger)year
|
121
|
+
month:(NSInteger)month
|
122
|
+
day:(NSInteger)day;
|
123
|
+
|
124
|
+
@end
|
@@ -0,0 +1,104 @@
|
|
1
|
+
//
|
2
|
+
// IHSDKCloudUser.h
|
3
|
+
// iHealthDemoCode
|
4
|
+
//
|
5
|
+
// Created by daiqingquan on 16/5/5.
|
6
|
+
// Copyright © 2016年 zhiwei jing. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import <Foundation/Foundation.h>
|
10
|
+
#import "HealthUser.h"
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
@interface IHSDKCloudUser : NSObject
|
15
|
+
|
16
|
+
@property (strong, nonatomic) NSString *thirdUserID;
|
17
|
+
|
18
|
+
|
19
|
+
/**
|
20
|
+
* Initialize IHSDKCloudUser class
|
21
|
+
*/
|
22
|
+
|
23
|
+
+(IHSDKCloudUser*)commandGetSDKUserInstance;
|
24
|
+
|
25
|
+
|
26
|
+
/** User authentication
|
27
|
+
|
28
|
+
* Import Parameters:
|
29
|
+
tempUser included properties: clientID, clientSecret, userAccount
|
30
|
+
userAccount: either email or mobile phone number (mobile phone number is not currently supported yet)
|
31
|
+
clientID & clientSecret: the only identification for users of the SDK, requires registration from iHealth administrator, please email: heguangming@ihealthlabs.com.cn for more information.
|
32
|
+
|
33
|
+
* Return Parameters:
|
34
|
+
* @param userValidationSuccess The return parameters of ’‘userid’, ‘height’, ’clientID’, and ‘clientSecret’ after verification
|
35
|
+
|
36
|
+
The interpretation for the verification:
|
37
|
+
UserAuthen_RegisterSuccess: New-user registration succeeded.
|
38
|
+
UserAuthen_LoginSuccess: User login succeeded.
|
39
|
+
UserAuthen_CombinedSuccess: The user is an iHealth user as well, measurement via SDK has been activated, and the data from the measurement belongs to the user.
|
40
|
+
UserAuthen_TrySuccess: Testing without internet connection succeeded.
|
41
|
+
UserAuthen_InvalidateUserInfo: Userid/clientID/clientSecret verification failed.
|
42
|
+
UserAuthen_SDKInvalidateRight: SDK has not been authorized.
|
43
|
+
UserAuthen_UserInvalidateRight: User has not been authorized.
|
44
|
+
UserAuthen_InternetError: Internet error, verification failed.
|
45
|
+
The measurement via SDK will be operated in the case of 1-4, and will be terminated if any of 5-8 occurs. The interface needs to be re-called after analyzing the return parameters.
|
46
|
+
Notice: when a new user registers via SDK, an ‘iHealth disclaimer’ will pop up automatically, and will require the user to agree in order to continue. SDK applications require an Internet connection; there is 10-day trial period if the SDK cannot connect to the internet, the SDK is fully functional during tryout period, but will be terminated without a working internet connection after 10 days.
|
47
|
+
|
48
|
+
* @param userDeviceAccess
|
49
|
+
(
|
50
|
+
OpenApiActivity,
|
51
|
+
OpenApiBG,
|
52
|
+
OpenApiBP,
|
53
|
+
OpenApiFood,
|
54
|
+
OpenApiSleep,
|
55
|
+
OpenApiSpO2,
|
56
|
+
OpenApiSport,
|
57
|
+
OpenApiUserInfo,
|
58
|
+
OpenApiWeight
|
59
|
+
)
|
60
|
+
|
61
|
+
* @param userValidationReturn userID
|
62
|
+
* @paramdisposeValidationErrorBlock: Error code
|
63
|
+
|
64
|
+
*/
|
65
|
+
|
66
|
+
-(void)commandSDKUserValidation:(HealthUser *)tempUser UserDeviceAccess:(DisposeSDKUserDeviceAccess)userDeviceAccess UserValidationSuccess:(DisposeSDKUserValidationSuccess)userValidationSuccess UserValidationReturn:(DisposeSDKUserValidationReturn)userValidationReturn DisposeErrorBlock:(DisposeSDKUserValidationErrorBlock)disposeValidationErrorBlock;
|
67
|
+
|
68
|
+
/** User authentication with AppSecret
|
69
|
+
|
70
|
+
* Import Parameters:
|
71
|
+
appSecret
|
72
|
+
* Return Parameters:
|
73
|
+
* @param userValidationSuccess UserAuthen_AppSecretVerifySuccess
|
74
|
+
|
75
|
+
* @param disposeValidationErrorBlock UserAuthen_AppSecretVerifyFailed
|
76
|
+
|
77
|
+
*/
|
78
|
+
-(void)commandSDKUserValidationWithAppSecret:(NSString *)appSecret UserValidationSuccess:(DisposeSDKUserValidationSuccess)userValidationSuccess DisposeErrorBlock:(DisposeSDKUserValidationErrorBlock)disposeValidationErrorBlock;
|
79
|
+
|
80
|
+
|
81
|
+
/** User authentication with License
|
82
|
+
|
83
|
+
* Import Parameters:
|
84
|
+
|
85
|
+
licenseData
|
86
|
+
|
87
|
+
* Return Parameters:
|
88
|
+
|
89
|
+
* @param userDeviceAccess
|
90
|
+
(
|
91
|
+
{
|
92
|
+
deviceName = am3s;
|
93
|
+
expiredDate = "2017-05-15";
|
94
|
+
},
|
95
|
+
|
96
|
+
)
|
97
|
+
* @param userValidationSuccess UserAuthen_AppSecretVerifySuccess
|
98
|
+
|
99
|
+
* @param disposeValidationErrorBlock UserAuthen_AppSecretVerifyFailed
|
100
|
+
|
101
|
+
*/
|
102
|
+
-(void)commandSDKUserValidationWithLicense:(NSData *)licenseData UserDeviceAccess:(DisposeSDKUserDeviceAccess)userDeviceAccess UserValidationSuccess:(DisposeSDKUserValidationSuccess)userValidationSuccess DisposeErrorBlock:(DisposeSDKUserValidationErrorBlock)disposeValidationErrorBlock;
|
103
|
+
|
104
|
+
@end
|
@@ -0,0 +1,115 @@
|
|
1
|
+
//
|
2
|
+
// KN550BT.h
|
3
|
+
// testShareCommunication
|
4
|
+
//
|
5
|
+
// Created by my on 8/10/13.
|
6
|
+
// Copyright (c) 2013年 my. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import <Foundation/Foundation.h>
|
10
|
+
#import "BPAV10Device.h"
|
11
|
+
#import <UIKit/UIKit.h>
|
12
|
+
|
13
|
+
|
14
|
+
/**
|
15
|
+
KN550BT device class
|
16
|
+
*/
|
17
|
+
@interface KN550BT : BPAV10Device <BPBasicBTLEProtocol,BPOfflineDataTransferProtocol>
|
18
|
+
|
19
|
+
@property (nonatomic, assign, readonly) BOOL isSupportDisplayConfig;
|
20
|
+
|
21
|
+
|
22
|
+
#pragma mark - Hypogenous query
|
23
|
+
|
24
|
+
/**
|
25
|
+
* Synchronize time and judge if the device supports the function of up Air Measurement, arm Measurement, Angle Sensor, Angle Setting, HSD, Offline Memory, mutable Groups Upload, Self Upgrade. ‘True’ means yes or on, ‘False’ means no or off.
|
26
|
+
* @param function A block to return the function and states that the device supports.
|
27
|
+
* @param error A block to refer ‘error’ in ‘Establish measurement connection’ in KN550BT.
|
28
|
+
*/
|
29
|
+
-(void)commandFunction:(BlockDeviceFunction)function errorBlock:(BlockError)error;
|
30
|
+
|
31
|
+
/**
|
32
|
+
* Query battery remaining energy.
|
33
|
+
* @param energyValue A block to return the device battery remaining energy percentage, ‘80’ stands for 80%.
|
34
|
+
* @param error A block to return the error in ‘Establish measurement connection’
|
35
|
+
*/
|
36
|
+
-(void)commandEnergy:(BlockEnergyValue)energyValue errorBlock:(BlockError)error;
|
37
|
+
|
38
|
+
|
39
|
+
/**
|
40
|
+
* Upload offline data total Count.
|
41
|
+
* @param totalCount item quantity of total data.
|
42
|
+
* @param error A block to return the error.
|
43
|
+
*/
|
44
|
+
-(void)commandTransferMemoryTotalCount:(BlockBachCount)totalCount errorBlock:(BlockError)error;
|
45
|
+
|
46
|
+
/**
|
47
|
+
* Upload offline data.
|
48
|
+
* @param totalCount item quantity of total data
|
49
|
+
* @param progress upload completion ratio , from 0.0 to 1.0 or 0%~100%, 100% means upload completed.
|
50
|
+
* @param uploadDataArray offline data set, including measurement time, systolic pressure, diastolic pressure, pulse rate, irregular judgment. corresponding KEYs are time, sys, dia, heartRate, irregular.
|
51
|
+
* @param error error codes.
|
52
|
+
* Specification:
|
53
|
+
* 1. BPError0 = 0: Unable to take measurements due to arm/wrist movements.
|
54
|
+
* 2. BPError1: Failed to detect systolic pressure.
|
55
|
+
* 3. BPError2: Failed to detect diastolic pressure.
|
56
|
+
* 4. BPError3: Pneumatic system blocked or cuff is too tight during inflation.
|
57
|
+
* 5. BPError4: Pneumatic system leakage or cuff is too loose during inflation.
|
58
|
+
* 6. BPError5: Cuff pressure reached over 300mmHg.
|
59
|
+
* 7. BPError6: Cuff pressure reached over 15 mmHg for more than 160 seconds.
|
60
|
+
* 8. BPError7: Data retrieving error.
|
61
|
+
* 9. BPError8: Data retrieving error.
|
62
|
+
* 10. BPError9: Data retrieving error.
|
63
|
+
* 11. BPError10: Data retrieving error.
|
64
|
+
* 12. BPError11: Communication Error.
|
65
|
+
* 13. BPError12: Communication Error.
|
66
|
+
* 14. BPError13: Low battery.
|
67
|
+
* 15. BPError14: Device bluetooth set failed.
|
68
|
+
* 16. BPError15: Systolic exceeds 260mmHg or diastolic exceeds 199mmHg.
|
69
|
+
* 17. BPError16: Systolic below 60mmHg or diastolic below 40mmHg.
|
70
|
+
* 18. BPError17: Arm/wrist movement beyond range.
|
71
|
+
* 19. BPNormalError=30: device error, error message displayed automatically.
|
72
|
+
* 20. BPOverTimeError: Abnormal communication.
|
73
|
+
* 21. BPNoRespondError: Abnormal communication.
|
74
|
+
* 22. BPBeyondRangeError: device is out of communication range.
|
75
|
+
* 23. BPDidDisconnect: device is disconnected.
|
76
|
+
* 24. BPAskToStopMeasure: measurement has been stopped.
|
77
|
+
* 25. BPInputParameterError=400: Parameter input error.
|
78
|
+
*/
|
79
|
+
-(void)commandTransferMemoryDataWithTotalCount:(BlockBachCount)totalCount progress:(BlockBachProgress)progress dataArray:(BlockBachArray)uploadDataArray errorBlock:(BlockError)error;
|
80
|
+
|
81
|
+
/**
|
82
|
+
* Set units for the Device
|
83
|
+
* @param UnitName The unit name string that KN550BT show result should use, must be @"mmHg" or @"kPa".
|
84
|
+
* @param setResult This block return means set success.
|
85
|
+
* @param error A block to return the error in set Unit communication.
|
86
|
+
*/
|
87
|
+
-(void)commandSetUnit:(NSString *)UnitName disposeSetReslut:(BlockSuccess)setResult errorBlock:(BlockError)error;
|
88
|
+
|
89
|
+
|
90
|
+
/**
|
91
|
+
* Disconnect current device
|
92
|
+
*/
|
93
|
+
-(void)commandDisconnectDevice;
|
94
|
+
|
95
|
+
|
96
|
+
/**
|
97
|
+
get status of device display
|
98
|
+
|
99
|
+
@param displayStatusBlock feedback status
|
100
|
+
@param errorBlock A block to return the error
|
101
|
+
*/
|
102
|
+
-(void)commandGetStatusOfDisplay:(BlockDisplayStatus)displayStatusBlock error:(BlockError)errorBlock;
|
103
|
+
|
104
|
+
|
105
|
+
/**
|
106
|
+
set status of device display
|
107
|
+
|
108
|
+
@param backLightOn turn on back light or not
|
109
|
+
@param clockOn show clock or not
|
110
|
+
@param successBlock This block return means set success
|
111
|
+
@param errorBlock A block to return the error
|
112
|
+
*/
|
113
|
+
-(void)commandSetStatusOfDisplayForBackLight:(BOOL)backLightOn andClock:(BOOL)clockOn resultSuccess:(BlockSuccess)successBlock error:(BlockError)errorBlock;
|
114
|
+
|
115
|
+
@end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
//
|
2
|
+
// KN550BTController.h
|
3
|
+
// testShareCommunication
|
4
|
+
//
|
5
|
+
// Created by my on 8/10/13.
|
6
|
+
// Copyright (c) 2013年 my. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import <Foundation/Foundation.h>
|
10
|
+
#import "BPController.h"
|
11
|
+
|
12
|
+
/**
|
13
|
+
KN550BT controller class
|
14
|
+
*/
|
15
|
+
@interface KN550BTController : BPController{
|
16
|
+
NSMutableArray *KN550BTDeviceArray;
|
17
|
+
}
|
18
|
+
|
19
|
+
/**
|
20
|
+
* Initialize KN550BT controller class
|
21
|
+
*/
|
22
|
+
+(KN550BTController *)shareKN550BTController;
|
23
|
+
|
24
|
+
/**
|
25
|
+
* Get all KN550BT instance,Access control class instance after receiving KN550BTConnectNoti, then use instance to call KN550BT related communication methods.
|
26
|
+
*/
|
27
|
+
-(NSArray *)getAllCurrentKN550BTInstace;
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
@end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
//
|
2
|
+
// ManageDeviceController.h
|
3
|
+
// iHealthDemoCode
|
4
|
+
//
|
5
|
+
// Created by daiqingquan on 16/7/3.
|
6
|
+
// Copyright © 2016年 zhiwei jing. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import <Foundation/Foundation.h>
|
10
|
+
|
11
|
+
/**
|
12
|
+
ManageDeviceController
|
13
|
+
*/
|
14
|
+
@interface ManageDeviceController : NSObject
|
15
|
+
|
16
|
+
+(ManageDeviceController *)commandGetInstance;
|
17
|
+
|
18
|
+
/**
|
19
|
+
* Get All Connect iHealth device
|
20
|
+
*/
|
21
|
+
|
22
|
+
- (NSArray *)commandGetAllConnectDeviceArray;
|
23
|
+
|
24
|
+
/**
|
25
|
+
* Dicconnect iHealth device with bluretooth low energy
|
26
|
+
* @param uuidString iHealth device currentUUID, you can get it from device property.
|
27
|
+
*/
|
28
|
+
|
29
|
+
-(void)commandDisconnectSelectDevice:(NSString *)uuidString;
|
30
|
+
|
31
|
+
-(void)commandConnectReadDeviceIDPS:(NSString *)uuidString;
|
32
|
+
|
33
|
+
|
34
|
+
@end
|