KD5811BT
The iOS SDK supports KD5811BT in versions 2.14.0 and above.
WorkFlow
Scan and connect KD-5811BT blood pressure monitor.
KD5811BT only supports offline measurement.
In the iOS SDK, use HealthDeviceType_KD5811BT to scan for this device. Offline memory is organized by user group: use MemoryDataGroupNumber_Group1, MemoryDataGroupNumber_Group2, or MemoryDataGroupNumber_All when reading or deleting history.
Connection to device
1.Listen to device notify
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(deviceDiscovered:) name:KD5811BTDiscover object:nil];
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(deviceConnectFailed:) name:KD5811BTConnectFailed object:nil];
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(DeviceConnected:) name:KD5811BTConnectNoti object:nil];
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(DeviceDisconnected:) name:KD5811BTDisConnectNoti object:nil];
[KD5811BTController shareIHKD5811BTController];
2.Scan for devices
[[ScanDeviceController commandGetInstance] commandScanDeviceType:HealthDeviceType_KD5811BT];
3.Connect to devices
[[ConnectDeviceController commandGetInstance] commandContectDeviceWithDeviceType:HealthDeviceType_KD5811BT andSerialNub:deviceMac];
API reference
Set local time to device
/**
* synchronize time
* @param success A block to refer ‘set success’.
* @param error A block to return the error.
*/
-(void)commandSynchronizeTime:(BlockSuccess)success errorBlock:(BlockError)error;
Get Function
/**
*
* What the function returns:
currentUser = 1;
upAirMeasureFlg = 0;
deviceSysTime = 2024-08-19 08:10:58 +0000;
haveOffline = 1;
deviceTime = 2024-06-30 16:59:13 +0000;
haveCuffLooseFlg = 1;
haveBodyMovementFlg = 1;
showUnit = 0;
is24Hour = 1;
selfUpdate = 0;
firmwareVersion = "1.0.4";
haveAngleSet = 0;
armMeasureFlg = 1;
haveShowUnitSetting = 0;
mutableUpload = 0;
haveBackLightSetting = 0;
haveClockShowSetting = 0;
hardwareVersion = "1.0.0";
haveAngleSensor = 0;
memoryGroup = 2;
maxMemoryCapacity = 120;
haveRepeatedlyMeasure = 0;
haveHSD = 0;
* @param function A block to return the function and states that the device supports.
* @param error A block to return the error.
*/
-(void)commandFunction:(BlockDeviceFunction)function errorBlock:(BlockError)error;
Get history data count
/**
* Upload offline data total Count.
* @param groupID Memory group: MemoryDataGroupNumber_Group1, MemoryDataGroupNumber_Group2, or MemoryDataGroupNumber_All.
* @param totalCount item quantity of total data count
* @param error A block to return the error.
*/
-(void)commandGetMemoryCountWithGroupID:(MemoryDataGroupNumber)groupID count:(BlockBachCount)totalCount errorBlock:(BlockError)error;
Get history data
/**
* Upload offline data(Please call the API for obtaining the number of historical data before calling this API, otherwise the data cannot be obtained.)
* @param groupID Memory group: MemoryDataGroupNumber_Group1, MemoryDataGroupNumber_Group2, or MemoryDataGroupNumber_All.
* @param uploadDataArray item quantity of total data.
* @param error A block to return the error.
*/
-(void)commandTransferMemoryDataWithGroupID:(MemoryDataGroupNumber)groupID data:(BlockBachArray)uploadDataArray errorBlock:(BlockError)error;
Delete history data
/**
* Delete offline data.
* @param groupID Memory group: MemoryDataGroupNumber_Group1, MemoryDataGroupNumber_Group2, or MemoryDataGroupNumber_All.
* @param success A block to refer ‘set success’.
* @param error A block to return the error.
*/
-(void)commandDeleteMemoryDataWithGroupID:(MemoryDataGroupNumber)groupID success:(BlockSuccess)success errorBlock:(BlockError)error;
Disconnect device
/**
* Disconnect current device
*/
-(void)commandDisconnectDevice;