<?xml version="1.0" encoding="UTF-8"?> | |||||
<Bucket | |||||
uuid = "F9079083-4AB6-4D3F-AA68-CF1430F0A8DE" | |||||
type = "1" | |||||
version = "2.0"> | |||||
</Bucket> |
ELBodyFatScaleBleDataA6SubType_BleBackHistoryWithAppAlgorithm = 0x07, | ELBodyFatScaleBleDataA6SubType_BleBackHistoryWithAppAlgorithm = 0x07, | ||||
/** App设置访问的IP地址 */ | /** App设置访问的IP地址 */ | ||||
ELBodyFatScaleBleDataA6SubType_AppSetDevIpAddress = 0x8B , | |||||
ELBodyFatScaleBleDataA6SubType_AppSetDevIpAddress = 0x8B , | |||||
/** App获取访问的IP地址 */ | |||||
ELBodyFatScaleBleDataA6SubType_AppGetDevIpAddress = 0x8C , | |||||
/** App设置访问的端口号 */ | |||||
ELBodyFatScaleBleDataA6SubType_AppSetDevPortNumber = 0x8D , | |||||
/** App获取访问的端口号 */ | |||||
ELBodyFatScaleBleDataA6SubType_AppGetDevPortNumber = 0x8E , | |||||
/** App设置访问的路径 */ | /** App设置访问的路径 */ | ||||
ELBodyFatScaleBleDataA6SubType_AppSetDevPath = 0x96 , | |||||
ELBodyFatScaleBleDataA6SubType_AppSetDevPath = 0x96 , | |||||
/** App获取访问的路径 */ | |||||
ELBodyFatScaleBleDataA6SubType_AppGetDevPath = 0x97 , | |||||
}; | }; | ||||
// ELScaleBleManager.h | // ELScaleBleManager.h | ||||
// Elink | // Elink | ||||
// | // | ||||
// Created by 王庭 on 2019/5/28. | |||||
// Created by cliCk on 2019/5/28. | |||||
// Copyright © 2019 iot_iMac. All rights reserved. | // Copyright © 2019 iot_iMac. All rights reserved. | ||||
// | // | ||||
-(void)sendCmd_RequestHistory; | -(void)sendCmd_RequestHistory; | ||||
/** 设置设备的IP地址和访问路径 */ | |||||
- (void)setDevAccessIpAddress:(NSString *)address path:(NSString *)path; | |||||
/** 设置设备的IP地址,端口号和访问路径 */ | |||||
- (void)setDevAccessIpAddress:(NSString *)address portNumber:(NSUInteger)portNum path:(NSString *)path; | |||||
@end | @end | ||||
// ELScaleDeviceModel.h | // ELScaleDeviceModel.h | ||||
// Elink | // Elink | ||||
// | // | ||||
// Created by 王庭 on 2019/5/28. | |||||
// Created by cliCk on 2019/5/28. | |||||
// Copyright © 2019 iot_iMac. All rights reserved. | // Copyright © 2019 iot_iMac. All rights reserved. | ||||
// | // | ||||
/** 身高数据 */ | /** 身高数据 */ | ||||
@property (nonatomic, assign) float height; | @property (nonatomic, assign) float height; | ||||
/** 身高小数点位 */ | |||||
@property (nonatomic, assign) NSUInteger heightPoint; | |||||
/** 身高单位 */ | /** 身高单位 */ | ||||
@property (nonatomic, assign) ELDeviceHeightUnit heightUnit; | @property (nonatomic, assign) ELDeviceHeightUnit heightUnit; | ||||
/** 体重数据 */ | /** 体重数据 */ | ||||
@property (nonatomic, assign) float weight; | @property (nonatomic, assign) float weight; | ||||
/** 体重小数点位 */ | |||||
@property (nonatomic, assign) NSUInteger weightPoint; | |||||
/** 体重单位 */ | /** 体重单位 */ | ||||
@property (nonatomic, assign) ELDeviceWeightUnit weightUnit; | @property (nonatomic, assign) ELDeviceWeightUnit weightUnit; | ||||
@property (nonatomic, weak) id<ELBroadcastHeightGaugeBleDelegate> heightGaugeDelegate; | @property (nonatomic, weak) id<ELBroadcastHeightGaugeBleDelegate> heightGaugeDelegate; | ||||
+(instancetype)shareManager; | |||||
@end | @end | ||||
NS_ASSUME_NONNULL_END | NS_ASSUME_NONNULL_END |
// ELRemoteControlBleManager.h | // ELRemoteControlBleManager.h | ||||
// Elink | // Elink | ||||
// | // | ||||
// Created by 王庭 on 2019/7/2. | |||||
// Created by cliCk on 2019/7/2. | |||||
// Copyright © 2019 iot_iMac. All rights reserved. | // Copyright © 2019 iot_iMac. All rights reserved. | ||||
// | // | ||||
// ELRemoteControlDeviceModel.h | // ELRemoteControlDeviceModel.h | ||||
// Elink | // Elink | ||||
// | // | ||||
// Created by 王庭 on 2019/7/2. | |||||
// Created by cliCk on 2019/7/2. | |||||
// Copyright © 2019 iot_iMac. All rights reserved. | // Copyright © 2019 iot_iMac. All rights reserved. | ||||
// | // | ||||
ELInetGetCmdTypeBleWifiGetDTIMInterval = 0x8A, //Get DTIM interval(获取DTIM间隔) | ELInetGetCmdTypeBleWifiGetDTIMInterval = 0x8A, //Get DTIM interval(获取DTIM间隔) | ||||
ELInetGetCmdTypeBleWifiSetIpAddress = 0x8B, //Set the access ip address(设置访问的ip地址 | ELInetGetCmdTypeBleWifiSetIpAddress = 0x8B, //Set the access ip address(设置访问的ip地址 | ||||
ELInetGetCmdTypeBleWifiGetURL = 0x8C, //Get visited sites(获取访问的网站) | ELInetGetCmdTypeBleWifiGetURL = 0x8C, //Get visited sites(获取访问的网站) | ||||
ELInetGetCmdTypeBleWifiSetPort = 0x8D, //set acces port number | |||||
ELInetGetCmdTypeBleWifiGetPort = 0x8E, //Get access port number(获取访问的端口号) | ELInetGetCmdTypeBleWifiGetPort = 0x8E, //Get access port number(获取访问的端口号) | ||||
ELInetGetCmdTypeBleWifiGetSNNumber = 0x93, //Get SN number (session code:deviceId)(获取SN号(会话码:设备ID)) | ELInetGetCmdTypeBleWifiGetSNNumber = 0x93, //Get SN number (session code:deviceId)(获取SN号(会话码:设备ID)) | ||||
ELInetGetCmdTypeBleWifiName = 0x94, //获取wifi名称 | |||||
ELInetGetCmdTypeBleWifiSetPathAddress = 0x96, //Set access path(设置访问的路径 | ELInetGetCmdTypeBleWifiSetPathAddress = 0x96, //Set access path(设置访问的路径 | ||||
ELInetGetCmdTypeBleWifiGetPathAddress = 0x97, //get access path | |||||
#pragma mark ============End 蓝牙Wifi ============== | #pragma mark ============End 蓝牙Wifi ============== | ||||
ELInetGetCmdTypeRequestAuthorize = 0x7F, //Request device authorization (请求设备授权) | ELInetGetCmdTypeRequestAuthorize = 0x7F, //Request device authorization (请求设备授权) | ||||
ELInetGetCmdTypeToothbrushA6Data = 0xC0, //A6 data for toothbrush(牙刷专用A6数据,详情请见协议的2级指令)(See the second order for details) | ELInetGetCmdTypeToothbrushA6Data = 0xC0, //A6 data for toothbrush(牙刷专用A6数据,详情请见协议的2级指令)(See the second order for details) | ||||
ELSupportDeviceTypeOximeter = 0x0021 , //Oximeter (血氧仪) | ELSupportDeviceTypeOximeter = 0x0021 , //Oximeter (血氧仪) | ||||
ELSupportDeviceTypeFaceMask = 0x0022 , //face mask(智能口罩) | ELSupportDeviceTypeFaceMask = 0x0022 , //face mask(智能口罩) | ||||
ELSupportDeviceTypeCoffeeScale = 0x0024 , //咖啡秤 | |||||
ELSupportDeviceTypeElectricScooter= 0x0025 , //滑板车 | ELSupportDeviceTypeElectricScooter= 0x0025 , //滑板车 | ||||
ELSupportDeviceTypeHeightBodyFatScale = 0x0026 , //身高体脂秤 | ELSupportDeviceTypeHeightBodyFatScale = 0x0026 , //身高体脂秤 | ||||
ELSupportDeviceTypeBLEToothbrush = 0x002D, //Bluetooth toothbrush(蓝牙牙刷) | ELSupportDeviceTypeBLEToothbrush = 0x002D, //Bluetooth toothbrush(蓝牙牙刷) | ||||
ELSupportDeviceTypeHygrothermograph = 0x002E , //温湿度计 | ELSupportDeviceTypeHygrothermograph = 0x002E , //温湿度计 | ||||
ELSupportDeviceTypeSkip = 0x002F , //跳绳 | |||||
ELSupportDeviceTypeBroadcastScale = (0xffff +0x01) , //655536 Broadcast body fat scale(AILink广播体脂秤) | ELSupportDeviceTypeBroadcastScale = (0xffff +0x01) , //655536 Broadcast body fat scale(AILink广播体脂秤) | ||||
ELSupportDeviceTypeBroadcastHeightGauge = (0xffff + 0x03) , //65538 广播身高仪 | ELSupportDeviceTypeBroadcastHeightGauge = (0xffff + 0x03) , //65538 广播身高仪 | ||||
ELSupportDeviceTypeBroadcastScale_Lingyang = (0xffff +0x16) , //65557 凌阳广播体脂秤 | ELSupportDeviceTypeBroadcastScale_Lingyang = (0xffff +0x16) , //65557 凌阳广播体脂秤 |
// ELThermometerBleManager.h | // ELThermometerBleManager.h | ||||
// Elink | // Elink | ||||
// | // | ||||
// Created by 王庭 on 2019/5/28. | |||||
// Created by cliCk on 2019/5/28. | |||||
// Copyright © 2019 iot_iMac. All rights reserved. | // Copyright © 2019 iot_iMac. All rights reserved. | ||||
// | // | ||||
// ELThermometerBleModel.h | // ELThermometerBleModel.h | ||||
// Elink | // Elink | ||||
// | // | ||||
// Created by 王庭 on 2019/5/28. | |||||
// Created by cliCk on 2019/5/28. | |||||
// Copyright © 2019 iot_iMac. All rights reserved. | // Copyright © 2019 iot_iMac. All rights reserved. | ||||
// | // | ||||
// ELThermometerDeviceModel.h | // ELThermometerDeviceModel.h | ||||
// Elink | // Elink | ||||
// | // | ||||
// Created by 王庭 on 2019/5/28. | |||||
// Created by cliCk on 2019/5/28. | |||||
// Copyright © 2019 iot_iMac. All rights reserved. | // Copyright © 2019 iot_iMac. All rights reserved. | ||||
// | // | ||||
//Get the second gear default gear(获取二档默认档位) | //Get the second gear default gear(获取二档默认档位) | ||||
-(void)getTwoGearDefualt; | -(void)getTwoGearDefualt; | ||||
- (void)getTwoGearDefualtWithCid:(ELSupportDeviceType)cid; | |||||
//Report the results of receiving brushing data(上报刷牙数据接收结果) | //Report the results of receiving brushing data(上报刷牙数据接收结果) | ||||
-(void)reportReceiveResultOfToothbrushData:(BOOL)result; | -(void)reportReceiveResultOfToothbrushData:(BOOL)result; | ||||
#import "ELSDKHeader.h" | #import "ELSDKHeader.h" | ||||
typedef NS_ENUM(NSUInteger, ToothSupportGearType) { | typedef NS_ENUM(NSUInteger, ToothSupportGearType) { | ||||
ToothSupportGearTypeUnknown = 0x00, //Unsupported gear(不支持的档位) | |||||
ToothSupportGearTypeOneGear = 0x01, //First gear(一档) | |||||
ToothSupportGearTypeTwoGear = 0x02, //Second gear(二档) | |||||
ToothSupportGearTypeUnknown_00 = 0x00, //Unsupported gear(不支持的档位) | |||||
ToothSupportGearTypeOneGear_01 = 0x01, //First gear(一档) | |||||
ToothSupportGearTypeTwoGear_02 = 0x02, //Second gear(二档) | |||||
}; | }; | ||||
//Working gear(工作档位) | //Working gear(工作档位) | ||||
typedef NS_ENUM(NSUInteger, ToothbrushGearType) { | typedef NS_ENUM(NSUInteger, ToothbrushGearType) { | ||||
ToothbrushGearTypeStop = 0x00, //Stop the motor(停止电机) | |||||
ToothbrushGearTypeClean = 0x01, //clean(清洁) | |||||
ToothbrushGearTypeWhite = 0x02, //Whitening(美白) | |||||
ToothbrushGearTypeMassage = 0x03, //massage(按摩) | |||||
ToothbrushGearTypeSenstitive = 0x04, //sensitive(敏感) | |||||
ToothbrushGearTypePolish = 0x05, //polishing(抛光) | |||||
ToothbrushGearTypeGumCare = 0x06, //Gum care(牙龈护理) | |||||
ToothbrushGearTypeRefresh = 0x07, //gargle(漱口) | |||||
ToothbrushGearTypeMascare = 0x08, //health care(保健) | |||||
ToothbrushGearTypeNewbie = 0x09, //Novice(新手) | |||||
ToothbrushGearTypeSoft = 0x0A, //Shurou(舒柔) | |||||
ToothbrushGearTypeGentle = 0x0B, //gentle(轻柔) | |||||
ToothbrushGearTypePamper = 0x0C, //Care(呵护) | |||||
ToothbrushGearTypeCustom = 0xFF, //manual setting(手动设置) | |||||
ToothbrushGearTypeStop_00 = 0x00, //Stop the motor(停止电机) | |||||
ToothbrushGearTypeClean_01 = 0x01, //clean(清洁) | |||||
ToothbrushGearTypeWhite_02 = 0x02, //Whitening(美白) | |||||
ToothbrushGearTypeMassage_03 = 0x03, //massage(按摩) | |||||
ToothbrushGearTypeSensitive_04 = 0x04, //sensitive(敏感) | |||||
ToothbrushGearTypePolish_05 = 0x05, //polishing(抛光) | |||||
ToothbrushGearTypeGumCare_06 = 0x06, //Gum care(牙龈护理) | |||||
ToothbrushGearTypeRefresh_07 = 0x07, //gargle(漱口) | |||||
ToothbrushGearTypeHealthcare_08 = 0x08, //health care(保健) | |||||
ToothbrushGearTypeNewbie_09 = 0x09, //Novice(新手) | |||||
ToothbrushGearTypeSoft_0A = 0x0A, //Soft(舒柔) | |||||
ToothbrushGearTypeGentle_0B = 0x0B, //gentle(轻柔) | |||||
ToothbrushGearTypeCare_0C = 0x0C, //Care(呵护) | |||||
ToothbrushGearTypeCustom_FF = 0xFF, //manual setting(手动设置) | |||||
}; | }; | ||||
typedef NS_ENUM(NSUInteger, ToothbrushDataType) { | typedef NS_ENUM(NSUInteger, ToothbrushDataType) { | ||||
ToothbrushDataTypeSetGear = 0x02,//Set gear(设置档位) | |||||
ToothbrushDataTypeGetGear = 0x03,//Get the current working gear(获取当前工作的档位) | |||||
ToothbrushDataTypeTry = 0x06,//try out(试用) | |||||
ToothbrushDataTypeWorkPhase = 0x07,//Work Phase(工作阶段) | |||||
ToothbrushDataTypeSetCustomData = 0x09,//Set manual setting mode(设置手动设置模式) | |||||
ToothbrushDataTypeGetCustomGear = 0x0A,//Get manually set data(获取手动设置的数据) | |||||
ToothbrushDataTypeSwitchWork = 0x0B,//Switch toothbrush(开关牙刷) | |||||
ToothbrushDataTypeSetTwoGearDefault = 0x0C,//Set second gear default(设置二档默认) | |||||
ToothbrushDataTypeGetTwoGearDefault = 0x0D,//Get second gear default(获取二档默认) | |||||
ToothbrushDataTypeToothbrushData = 0xFD,//Brushing data(刷牙数据) | |||||
ToothbrushDataTypeReportResult = 0xFE,//Report received data result(上报接收数据结果) | |||||
ToothbrushDataTypeSetGear_A702 = 0x02,//Set gear(设置档位) | |||||
ToothbrushDataTypeGetGear_A703 = 0x03,//Get the current working gear(获取当前工作的档位) | |||||
ToothbrushDataTypeTry_A706 = 0x06,//try out(试用) | |||||
ToothbrushDataTypeWorkPhase_A707 = 0x07,//Work Phase(工作阶段) | |||||
ToothbrushDataTypeSetCustomData_A709 = 0x09,//Set manual setting mode(设置手动设置模式) | |||||
ToothbrushDataTypeGetCustomGear_A70A = 0x0A,//Get manually set data(获取手动设置的数据) | |||||
ToothbrushDataTypeSwitchWork_A70B = 0x0B,//Switch toothbrush(开关牙刷) | |||||
ToothbrushDataTypeSetTwoGearDefault_A70C = 0x0C,//Set second gear default(设置二档默认) | |||||
ToothbrushDataTypeGetTwoGearDefault_A70D = 0x0D,//Get second gear default(获取二档默认) | |||||
ToothbrushDataTypeToothbrushData_A7FD = 0xFD,//Brushing data(刷牙数据) | |||||
ToothbrushDataTypeReportResult_A7FE = 0xFE,//Report received data result(上报接收数据结果) | |||||
}; | }; | ||||
typedef NS_ENUM(NSUInteger, ToothbrushA6DataType) { | typedef NS_ENUM(NSUInteger, ToothbrushA6DataType) { | ||||
ToothbrushA6DataTypeTriaxialDirection = 0x02, //Get the three-axis direction of the toothbrush(获取牙刷三轴方向) | |||||
ToothbrushA6DataTypeTriaxialData = 0x05, //Get toothbrush three-axis data(获取牙刷三轴数据) | |||||
ToothbrushA6DataTypeTriaxialDirection_02 = 0x02, //Get the three-axis direction of the toothbrush(获取牙刷三轴方向) | |||||
ToothbrushA6DataTypeTriaxialData_05 = 0x05, //Get toothbrush three-axis data(获取牙刷三轴数据) | |||||
ToothbrushA6DataTypeOfflineDataCount_11 = 0x11, //Cmd toothbrush offline data count(APP 获取离线历史记录条数 二级指令 0x11) | |||||
ToothbrushA6DataTypeOfflineDataStart_12 = 0x12, //Cmd toothbrush offline data start(APP 请求接收离线历史记录 二级指令 0x12) | |||||
ToothbrushA6DataTypeOfflineDataCancel_13 = 0x13, //Cmd toothbrush offline data cancel(APP 取消接收离线历史记录 二级指令 0x13) | |||||
ToothbrushA6DataTypeOfflineDataClear_14 = 0x14, //Cmd toothbrush offline data clear(APP 请求清空离线历史记录 二级指令 0x14) | |||||
ToothbrushA6DataTypeOfflineData_15 = 0x15, //Data toothbrush offline data(离线历史记录数据上报给 APP 二级指令 0x15) | |||||
}; | }; | ||||
typedef NS_ENUM(NSUInteger, ToothbrushSetResult) { | typedef NS_ENUM(NSUInteger, ToothbrushSetResult) { | ||||
ToothbrushSetResultSuccess,//Set successfully(设置成功) | ToothbrushSetResultSuccess,//Set successfully(设置成功) | ||||
ToothbrushSetResultFail,//Setting failed for unknown reason(设置失败,原因未知) | ToothbrushSetResultFail,//Setting failed for unknown reason(设置失败,原因未知) | ||||
ToothbrushSetResultUnsupport,//Does not support settings(不支持设置) | |||||
ToothbrushSetResultUnsupported,//Does not support settings(不支持设置) | |||||
ToothbrushSetResultLowPower,//Setting failed, battery voltage is low(设置失败,电池电压不足) | ToothbrushSetResultLowPower,//Setting failed, battery voltage is low(设置失败,电池电压不足) | ||||
ToothbrushSetResultCharging,//Setting failed, charging(设置失败,正在充电) | ToothbrushSetResultCharging,//Setting failed, charging(设置失败,正在充电) | ||||
ToothbrushSetResultWorking,//Setting failed, working(设置失败,正在工作) | ToothbrushSetResultWorking,//Setting failed, working(设置失败,正在工作) | ||||
//Y axis direction(Y轴方向) | //Y axis direction(Y轴方向) | ||||
typedef NS_ENUM(NSUInteger, ToothbrushTriaxialDirection) { | typedef NS_ENUM(NSUInteger, ToothbrushTriaxialDirection) { | ||||
ToothbrushTriaxialDirectionYTop = 1,//Y axis up(Y轴朝上) | |||||
ToothbrushTriaxialDirectionYBottom = 2,//Y axis down(Y轴朝下) | |||||
ToothbrushTriaxialDirectionYLeft = 3,//Y axis left(Y轴朝左) | |||||
ToothbrushTriaxialDirectionYRight = 4,//Y axis right(Y轴朝右) | |||||
ToothbrushTriaxialDirectionYTop_01 = 1,//Y axis up(Y轴朝上) | |||||
ToothbrushTriaxialDirectionYBottom_02 = 2,//Y axis down(Y轴朝下) | |||||
ToothbrushTriaxialDirectionYLeft_03 = 3,//Y axis left(Y轴朝左) | |||||
ToothbrushTriaxialDirectionYRight_04 = 4,//Y axis right(Y轴朝右) | |||||
}; | }; | ||||
typedef struct{ | |||||
typedef struct { | |||||
int interval;//operating hours(工作时间) | int interval;//operating hours(工作时间) | ||||
ToothbrushGearType gearType;//Gear(档位) | ToothbrushGearType gearType;//Gear(档位) | ||||
ToothSupportGearType supportType;//What Gear(什么档) | ToothSupportGearType supportType;//What Gear(什么档) | ||||
}ToothbrushWorkGear,ToothbrushWorkGear; | |||||
} ToothbrushWorkGear, ToothbrushWorkGear; | |||||
typedef struct{ | |||||
typedef struct { | |||||
ToothbrushGearType gear; | ToothbrushGearType gear; | ||||
ToothSupportGearType supportType;//一档、二档 | ToothSupportGearType supportType;//一档、二档 | ||||
ToothbrushWorkPhaseType workPhase; | ToothbrushWorkPhaseType workPhase; | ||||
}ToothBrushWorkPhase,ToothBrushWorkPhase; | |||||
} ToothBrushWorkPhase, ToothBrushWorkPhase; | |||||
// | // | ||||
typedef struct{ | |||||
typedef struct { | |||||
int frequency; | int frequency; | ||||
int duty; | int duty; | ||||
int interval; | int interval; | ||||
}ToothbrushCustomData,ToothbrushCustomData; | |||||
} ToothbrushCustomData, ToothbrushCustomData; | |||||
//Brushing data(刷牙数据) | //Brushing data(刷牙数据) | ||||
typedef struct{ | |||||
typedef struct { | |||||
ToothbrushGearType gear;//Working gear(工作档位) | ToothbrushGearType gear;//Working gear(工作档位) | ||||
int workTime;//work time(工作时长) | int workTime;//work time(工作时长) | ||||
int leftTime;//Time left(左边时长) | int leftTime;//Time left(左边时长) | ||||
int rightTime;//Right time(右边时长) | int rightTime;//Right time(右边时长) | ||||
int battery;//battery(电量) | int battery;//battery(电量) | ||||
}ToothbrushData,ToothbrushData; | |||||
} ToothbrushData, ToothbrushData; | |||||
//Brushing offline data(刷牙数据) | |||||
typedef struct { | |||||
unsigned char year; | |||||
unsigned char month; | |||||
unsigned char day; | |||||
unsigned char hour; | |||||
unsigned char minute; | |||||
unsigned char second; | |||||
ToothbrushGearType gearType; | |||||
unsigned short workTime; | |||||
unsigned short leftTime; | |||||
unsigned short rightTime; | |||||
unsigned char battery; | |||||
} ToothbrushOfflineData; | |||||
#endif /* ELToothburshHeader_h */ | #endif /* ELToothburshHeader_h */ |
</data> | </data> | ||||
<key>Headers/ELBodyFatScaleBleHeader.h</key> | <key>Headers/ELBodyFatScaleBleHeader.h</key> | ||||
<data> | <data> | ||||
jlxGP9vO41F6PqO6FAI7ja4dXFg= | |||||
84xbdZ1nb1vkz3pa8sr6UC266a4= | |||||
</data> | </data> | ||||
<key>Headers/ELBodyFatScaleBleManager.h</key> | <key>Headers/ELBodyFatScaleBleManager.h</key> | ||||
<data> | <data> | ||||
gr3jUgMdb8tSM/vaeHNwBFZ5c/Y= | |||||
ZT7CLLqirgzK6/zVXmvjwQCZoKQ= | |||||
</data> | </data> | ||||
<key>Headers/ELBodyFatScaleBleUserModel.h</key> | <key>Headers/ELBodyFatScaleBleUserModel.h</key> | ||||
<data> | <data> | ||||
</data> | </data> | ||||
<key>Headers/ELBodyFatScaleDeviceModel.h</key> | <key>Headers/ELBodyFatScaleDeviceModel.h</key> | ||||
<data> | <data> | ||||
wzOhRUInZ0tuoj3LHMmJV1XejoY= | |||||
al90qzio34fUj7K2q+oqlJYp48s= | |||||
</data> | </data> | ||||
<key>Headers/ELBodyIndexAlgorithmModel.h</key> | <key>Headers/ELBodyIndexAlgorithmModel.h</key> | ||||
<data> | <data> | ||||
</data> | </data> | ||||
<key>Headers/ELBroadcastHeightGaugeBleDataModel.h</key> | <key>Headers/ELBroadcastHeightGaugeBleDataModel.h</key> | ||||
<data> | <data> | ||||
pAkS79Ialx0K+bKud7rztyLDxDs= | |||||
UyXdCc2Y0WFTB2IR4wxXrlO9mow= | |||||
</data> | </data> | ||||
<key>Headers/ELBroadcastHeightGaugeBleHeader.h</key> | <key>Headers/ELBroadcastHeightGaugeBleHeader.h</key> | ||||
<data> | <data> | ||||
</data> | </data> | ||||
<key>Headers/ELBroadcastHeightGaugeBleManager.h</key> | <key>Headers/ELBroadcastHeightGaugeBleManager.h</key> | ||||
<data> | <data> | ||||
9BbeVBBE2wJxcBSv9YjwrR5nA/g= | |||||
rJ0AZmUA5VG185FJLRDB7EDoXr8= | |||||
</data> | </data> | ||||
<key>Headers/ELBroadcastScaleBleHeader.h</key> | <key>Headers/ELBroadcastScaleBleHeader.h</key> | ||||
<data> | <data> | ||||
</data> | </data> | ||||
<key>Headers/ELRemoteControlBleManager.h</key> | <key>Headers/ELRemoteControlBleManager.h</key> | ||||
<data> | <data> | ||||
9X5zOrtm2++QrNYXgD9daEM9cT8= | |||||
p+mZ1Kc2mhiqv20ND4KIIvxeI94= | |||||
</data> | </data> | ||||
<key>Headers/ELRemoteControlDeviceModel.h</key> | <key>Headers/ELRemoteControlDeviceModel.h</key> | ||||
<data> | <data> | ||||
ckFgMSGZyOJnzl2Kxs0FPR96pn4= | |||||
QGRDoPXr7ASQ9a3gP3+nbJ3PU9U= | |||||
</data> | </data> | ||||
<key>Headers/ELSDKHeader.h</key> | <key>Headers/ELSDKHeader.h</key> | ||||
<data> | <data> | ||||
7a71hKtsRfCN0UJPOE3j3NRVmZs= | |||||
Ql5OuG/iV9Mjjci5KTQQJ2U4ld0= | |||||
</data> | </data> | ||||
<key>Headers/ELTempAlgorithmusModel.h</key> | <key>Headers/ELTempAlgorithmusModel.h</key> | ||||
<data> | <data> | ||||
</data> | </data> | ||||
<key>Headers/ELThermometerBleManager.h</key> | <key>Headers/ELThermometerBleManager.h</key> | ||||
<data> | <data> | ||||
YwpHbSaC/6vqUXv4ItJLRIfr2Gk= | |||||
/+yNjhPHO2YQTccKaQxt0zgR4ko= | |||||
</data> | </data> | ||||
<key>Headers/ELThermometerBleModel.h</key> | <key>Headers/ELThermometerBleModel.h</key> | ||||
<data> | <data> | ||||
WF60Fo1A0P/luh3JNoHFUy9Rsyw= | |||||
irHex3QPP2spKOdA5D+0P0mvPWY= | |||||
</data> | </data> | ||||
<key>Headers/ELThermometerDeviceModel.h</key> | <key>Headers/ELThermometerDeviceModel.h</key> | ||||
<data> | <data> | ||||
Oa8GTYS1hEhJk+BQL1IiR2T3eSw= | |||||
fz6v4fR0TPfSn3Ev6QjBN8OJDfE= | |||||
</data> | </data> | ||||
<key>Headers/ELToothbrushBleManager.h</key> | <key>Headers/ELToothbrushBleManager.h</key> | ||||
<data> | <data> | ||||
4wDjnauu3xgAtKMyTzwkdyUwxCI= | |||||
IVPpFaQopW4O601+Bpv71SchT4I= | |||||
</data> | </data> | ||||
<key>Headers/ELToothburshHeader.h</key> | <key>Headers/ELToothburshHeader.h</key> | ||||
<data> | <data> | ||||
QHN/+6s7uaNjGtbsXs91q11T2aM= | |||||
5NG1gdWoZXYJ3tBNUMu5/tq9plY= | |||||
</data> | </data> | ||||
<key>Headers/ELUnitConvertTool.h</key> | <key>Headers/ELUnitConvertTool.h</key> | ||||
<data> | <data> | ||||
<dict> | <dict> | ||||
<key>hash</key> | <key>hash</key> | ||||
<data> | <data> | ||||
jlxGP9vO41F6PqO6FAI7ja4dXFg= | |||||
84xbdZ1nb1vkz3pa8sr6UC266a4= | |||||
</data> | </data> | ||||
<key>hash2</key> | <key>hash2</key> | ||||
<data> | <data> | ||||
hm4hR8NWmn8ZAD4ctVOyKl94c0jQq32T7ZnQLMyxuJc= | |||||
CgELyi7dGQaLFHKdulq7TvEtO6R5ITvvke40WUbUwNM= | |||||
</data> | </data> | ||||
</dict> | </dict> | ||||
<key>Headers/ELBodyFatScaleBleManager.h</key> | <key>Headers/ELBodyFatScaleBleManager.h</key> | ||||
<dict> | <dict> | ||||
<key>hash</key> | <key>hash</key> | ||||
<data> | <data> | ||||
gr3jUgMdb8tSM/vaeHNwBFZ5c/Y= | |||||
ZT7CLLqirgzK6/zVXmvjwQCZoKQ= | |||||
</data> | </data> | ||||
<key>hash2</key> | <key>hash2</key> | ||||
<data> | <data> | ||||
RXzOMSdbWbti3AaIAjxTUBqr/ivyklk0RsHdpeMeMco= | |||||
R9dwhogNJAO6g+5n13QGbfEzeZSTGsz0EJHGuI5Y/4E= | |||||
</data> | </data> | ||||
</dict> | </dict> | ||||
<key>Headers/ELBodyFatScaleBleUserModel.h</key> | <key>Headers/ELBodyFatScaleBleUserModel.h</key> | ||||
<dict> | <dict> | ||||
<key>hash</key> | <key>hash</key> | ||||
<data> | <data> | ||||
wzOhRUInZ0tuoj3LHMmJV1XejoY= | |||||
al90qzio34fUj7K2q+oqlJYp48s= | |||||
</data> | </data> | ||||
<key>hash2</key> | <key>hash2</key> | ||||
<data> | <data> | ||||
ZP6cxgBFbWaQx/NIDxVVSWHwIu4JcVyIgQFhDh/6WO0= | |||||
p+RYmO/5WP3JY0W4AyifFaZsaHroonuCkZF5sCtqDEw= | |||||
</data> | </data> | ||||
</dict> | </dict> | ||||
<key>Headers/ELBodyIndexAlgorithmModel.h</key> | <key>Headers/ELBodyIndexAlgorithmModel.h</key> | ||||
<dict> | <dict> | ||||
<key>hash</key> | <key>hash</key> | ||||
<data> | <data> | ||||
pAkS79Ialx0K+bKud7rztyLDxDs= | |||||
UyXdCc2Y0WFTB2IR4wxXrlO9mow= | |||||
</data> | </data> | ||||
<key>hash2</key> | <key>hash2</key> | ||||
<data> | <data> | ||||
nTUc/63sD44LBRJw5vIxcToIUrxropVZQshX+Dr9OnI= | |||||
6GFPPodhJCy1gYznnaEy3bEdsoxyEaKVancFHzjbSlg= | |||||
</data> | </data> | ||||
</dict> | </dict> | ||||
<key>Headers/ELBroadcastHeightGaugeBleHeader.h</key> | <key>Headers/ELBroadcastHeightGaugeBleHeader.h</key> | ||||
<dict> | <dict> | ||||
<key>hash</key> | <key>hash</key> | ||||
<data> | <data> | ||||
9BbeVBBE2wJxcBSv9YjwrR5nA/g= | |||||
rJ0AZmUA5VG185FJLRDB7EDoXr8= | |||||
</data> | </data> | ||||
<key>hash2</key> | <key>hash2</key> | ||||
<data> | <data> | ||||
sqVd9Jb1QjXC82WJYxGrO3nGDduU4CdEHuTL8baY6HY= | |||||
7+ZyjyoD0xpqLf08K3tcLuvJXQAOTYHcGlkjn5UIZag= | |||||
</data> | </data> | ||||
</dict> | </dict> | ||||
<key>Headers/ELBroadcastScaleBleHeader.h</key> | <key>Headers/ELBroadcastScaleBleHeader.h</key> | ||||
<dict> | <dict> | ||||
<key>hash</key> | <key>hash</key> | ||||
<data> | <data> | ||||
9X5zOrtm2++QrNYXgD9daEM9cT8= | |||||
p+mZ1Kc2mhiqv20ND4KIIvxeI94= | |||||
</data> | </data> | ||||
<key>hash2</key> | <key>hash2</key> | ||||
<data> | <data> | ||||
QHgtDVCslJ7TZmT0KI+iov6SB5X3ZlBXZCdBIx1QZSo= | |||||
UF4/HYgPTpzZsEBBKHxlA7WmkcxVfatWq8rKrW3Jqd0= | |||||
</data> | </data> | ||||
</dict> | </dict> | ||||
<key>Headers/ELRemoteControlDeviceModel.h</key> | <key>Headers/ELRemoteControlDeviceModel.h</key> | ||||
<dict> | <dict> | ||||
<key>hash</key> | <key>hash</key> | ||||
<data> | <data> | ||||
ckFgMSGZyOJnzl2Kxs0FPR96pn4= | |||||
QGRDoPXr7ASQ9a3gP3+nbJ3PU9U= | |||||
</data> | </data> | ||||
<key>hash2</key> | <key>hash2</key> | ||||
<data> | <data> | ||||
L/ievm90HlYaSADq8DO3GkT7wk9nFYrQKcHf0Xq+X9g= | |||||
32XXhjUpv8i1Ui/W8st1RA3GoEnNZC47uGGgS4tr4ds= | |||||
</data> | </data> | ||||
</dict> | </dict> | ||||
<key>Headers/ELSDKHeader.h</key> | <key>Headers/ELSDKHeader.h</key> | ||||
<dict> | <dict> | ||||
<key>hash</key> | <key>hash</key> | ||||
<data> | <data> | ||||
7a71hKtsRfCN0UJPOE3j3NRVmZs= | |||||
Ql5OuG/iV9Mjjci5KTQQJ2U4ld0= | |||||
</data> | </data> | ||||
<key>hash2</key> | <key>hash2</key> | ||||
<data> | <data> | ||||
SqmjyQiZ5DI7DsKqi0cSjBEPKDvyscuScdTmFXOHN9c= | |||||
rfrl8kMk4GD1REIxmML0Ug5bW5chEZSgQIcHjTtFTOc= | |||||
</data> | </data> | ||||
</dict> | </dict> | ||||
<key>Headers/ELTempAlgorithmusModel.h</key> | <key>Headers/ELTempAlgorithmusModel.h</key> | ||||
<dict> | <dict> | ||||
<key>hash</key> | <key>hash</key> | ||||
<data> | <data> | ||||
YwpHbSaC/6vqUXv4ItJLRIfr2Gk= | |||||
/+yNjhPHO2YQTccKaQxt0zgR4ko= | |||||
</data> | </data> | ||||
<key>hash2</key> | <key>hash2</key> | ||||
<data> | <data> | ||||
XvSVf9CAJRwERUCK7WALf7TJg5FZd7rL9Sa8zNKeFTs= | |||||
qnr9Lew5Nf0bMOrZ9F7zr1s0j/LAV3gV3/07ihVmWuM= | |||||
</data> | </data> | ||||
</dict> | </dict> | ||||
<key>Headers/ELThermometerBleModel.h</key> | <key>Headers/ELThermometerBleModel.h</key> | ||||
<dict> | <dict> | ||||
<key>hash</key> | <key>hash</key> | ||||
<data> | <data> | ||||
WF60Fo1A0P/luh3JNoHFUy9Rsyw= | |||||
irHex3QPP2spKOdA5D+0P0mvPWY= | |||||
</data> | </data> | ||||
<key>hash2</key> | <key>hash2</key> | ||||
<data> | <data> | ||||
3ZijZcITdb4zEUbac9UkE3siVGW3EUbEBTxIEQsHq64= | |||||
VD7gwYjhGr+H95+c7Ur09crkziZNa9Qvwx2knpBfPRo= | |||||
</data> | </data> | ||||
</dict> | </dict> | ||||
<key>Headers/ELThermometerDeviceModel.h</key> | <key>Headers/ELThermometerDeviceModel.h</key> | ||||
<dict> | <dict> | ||||
<key>hash</key> | <key>hash</key> | ||||
<data> | <data> | ||||
Oa8GTYS1hEhJk+BQL1IiR2T3eSw= | |||||
fz6v4fR0TPfSn3Ev6QjBN8OJDfE= | |||||
</data> | </data> | ||||
<key>hash2</key> | <key>hash2</key> | ||||
<data> | <data> | ||||
gSjca3FLXifg5U5v47xNQpOf4dgQ0ib6CwitQPp1Hbs= | |||||
drvshR01QLpDnBYtDflNUfcpUx0/aSXyt+X8nCWWUKA= | |||||
</data> | </data> | ||||
</dict> | </dict> | ||||
<key>Headers/ELToothbrushBleManager.h</key> | <key>Headers/ELToothbrushBleManager.h</key> | ||||
<dict> | <dict> | ||||
<key>hash</key> | <key>hash</key> | ||||
<data> | <data> | ||||
4wDjnauu3xgAtKMyTzwkdyUwxCI= | |||||
IVPpFaQopW4O601+Bpv71SchT4I= | |||||
</data> | </data> | ||||
<key>hash2</key> | <key>hash2</key> | ||||
<data> | <data> | ||||
AjoEaDCmQ/q5m4mLCqXKeA7fYCF5eGdE1NPWj8SFe+8= | |||||
QZK3CU6vLiPQrPV/CSbKiEBDo9MRNt4HHkzS+u+dWSs= | |||||
</data> | </data> | ||||
</dict> | </dict> | ||||
<key>Headers/ELToothburshHeader.h</key> | <key>Headers/ELToothburshHeader.h</key> | ||||
<dict> | <dict> | ||||
<key>hash</key> | <key>hash</key> | ||||
<data> | <data> | ||||
QHN/+6s7uaNjGtbsXs91q11T2aM= | |||||
5NG1gdWoZXYJ3tBNUMu5/tq9plY= | |||||
</data> | </data> | ||||
<key>hash2</key> | <key>hash2</key> | ||||
<data> | <data> | ||||
0ASrA6x/0Oawl6R0Sa+RejPtC7W1JoYM7YxK6cvZdDI= | |||||
KfOc0mMKGsfRnV1W5HgO3ffsMi3vh+9r4+NfxUcyJvw= | |||||
</data> | </data> | ||||
</dict> | </dict> | ||||
<key>Headers/ELUnitConvertTool.h</key> | <key>Headers/ELUnitConvertTool.h</key> |
#pragma mark - 切换秤环境 | #pragma mark - 切换秤环境 | ||||
static NSString *formalAddress = @"http://ailink.iot.aicare.net.cn"; | |||||
static NSString *testAddress = @"http://test.ailink.revice.aicare.net.cn"; | |||||
static NSString *pathURL = @"/devivce/serverRedirect/"; | |||||
static NSString *formalAddress = @"ailink.iot.aicare.net.cn"; | |||||
static NSString *testAddress = @"test.ailink.revice.aicare.net.cn"; | |||||
//static NSString *pathURL = @"/devivce/serverRedirect/"; | |||||
static NSInteger portNumber = 80; | |||||
- (void)changeDevIpAddress:(UIButton *)sender { | - (void)changeDevIpAddress:(UIButton *)sender { | ||||
// if ([self.title isEqualToString:@"Connected"]) { | // if ([self.title isEqualToString:@"Connected"]) { | ||||
if (sender.selected) { | if (sender.selected) { | ||||
//切换到生产环境 | //切换到生产环境 | ||||
[[ELBodyFatScaleBleManager shareManager] setDevAccessIpAddress:formalAddress path:pathURL]; | |||||
[[ELBodyFatScaleBleManager shareManager] setDevAccessIpAddress:formalAddress portNumber:portNumber path:@""]; | |||||
[self addLog:@"Start to configure as a production environment(开始配置为生产环境"]; | [self addLog:@"Start to configure as a production environment(开始配置为生产环境"]; | ||||
} else { | } else { | ||||
//切到测试环境 | //切到测试环境 | ||||
[[ELBodyFatScaleBleManager shareManager] setDevAccessIpAddress:testAddress path:pathURL]; | |||||
[[ELBodyFatScaleBleManager shareManager] setDevAccessIpAddress:testAddress portNumber:portNumber path:@""]; | |||||
// [[ELBodyFatScaleBleManager shareManager] setDevAccessIpAddress:@"ABCD1234567890" path:pathURL]; | // [[ELBodyFatScaleBleManager shareManager] setDevAccessIpAddress:@"ABCD1234567890" path:pathURL]; | ||||
[self addLog:@"Start to configure as a test environment(开始配置为测试环境"]; | [self addLog:@"Start to configure as a test environment(开始配置为测试环境"]; | ||||
} | } |
else if (tag == 11){ | else if (tag == 11){ | ||||
//MARK:设置刷牙模式 | //MARK:设置刷牙模式 | ||||
[self addLog:@"设置刷牙模式:舒柔"]; | [self addLog:@"设置刷牙模式:舒柔"]; | ||||
[[ELToothbrushBleManager shareManager] setWorkGear:(ToothbrushGearTypeSoft) interval:120 supportGearType:(ToothSupportGearTypeOneGear)]; | |||||
[[ELToothbrushBleManager shareManager] setWorkGear:(ToothbrushGearTypeSoft_0A) interval:120 supportGearType:(ToothSupportGearTypeOneGear_01)]; | |||||
}else if (tag == 12){ | }else if (tag == 12){ | ||||
//MARK:开关 | //MARK:开关 | ||||
[self addLog:@"开关"]; | [self addLog:@"开关"]; | ||||
}else if (tag == 13){ | }else if (tag == 13){ | ||||
//MARK:设置二档默认 | //MARK:设置二档默认 | ||||
[self addLog:@"设置二档默认(清洁)"]; | [self addLog:@"设置二档默认(清洁)"]; | ||||
[[ELToothbrushBleManager shareManager] setTwoGearDefaultGear:(ToothbrushGearTypeClean)]; | |||||
[[ELToothbrushBleManager shareManager] setTwoGearDefaultGear:(ToothbrushGearTypeClean_01)]; | |||||
}else if (tag == 14){ | }else if (tag == 14){ | ||||
//MARK:试用 | //MARK:试用 | ||||
[self addLog:@"试用,手动设置,二档,frequency:67 duty:50"]; | [self addLog:@"试用,手动设置,二档,frequency:67 duty:50"]; | ||||
[[ELToothbrushBleManager shareManager] tryGear:(ToothbrushGearTypeCustom) supportType:(ToothSupportGearTypeTwoGear) frequency:67 duty:50]; | |||||
[[ELToothbrushBleManager shareManager] tryGear:(ToothbrushGearTypeCustom_FF) supportType:(ToothSupportGearTypeTwoGear_02) frequency:67 duty:50]; | |||||
}else if (tag == 15){ | }else if (tag == 15){ | ||||
//MARK:设置手动档 | //MARK:设置手动档 | ||||
[self addLog:@"设置手动档:frequency:67 duty:50 interval:120"]; | [self addLog:@"设置手动档:frequency:67 duty:50 interval:120"]; | ||||
} | } | ||||
//三轴方向 | //三轴方向 | ||||
-(void)toothbrushReceiveTriaxialDirection:(ToothbrushTriaxialDirection)direction{ | -(void)toothbrushReceiveTriaxialDirection:(ToothbrushTriaxialDirection)direction{ | ||||
if (direction == ToothbrushTriaxialDirectionYTop) { | |||||
if (direction == ToothbrushTriaxialDirectionYTop_01) { | |||||
[self addLog:@"Y轴朝上"]; | [self addLog:@"Y轴朝上"]; | ||||
}else if (direction == ToothbrushTriaxialDirectionYBottom){ | |||||
}else if (direction == ToothbrushTriaxialDirectionYBottom_02){ | |||||
[self addLog:@"Y轴朝下"]; | [self addLog:@"Y轴朝下"]; | ||||
}else if (direction == ToothbrushTriaxialDirectionYLeft){ | |||||
}else if (direction == ToothbrushTriaxialDirectionYLeft_03){ | |||||
[self addLog:@"Y轴朝左"]; | [self addLog:@"Y轴朝左"]; | ||||
}else if (direction == ToothbrushTriaxialDirectionYRight){ | |||||
}else if (direction == ToothbrushTriaxialDirectionYRight_04){ | |||||
[self addLog:@"Y轴朝右"]; | [self addLog:@"Y轴朝右"]; | ||||
} | } | ||||