You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ELSmartRingBleHeader.h 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. //
  2. // ELSmartRingBleHeader.h
  3. // Elink
  4. //
  5. // Created by 周鹏 on 2023/7/31.
  6. // Copyright © 2023 iot_iMac. All rights reserved.
  7. //
  8. #ifndef ELSmartRingBleHeader_h
  9. #define ELSmartRingBleHeader_h
  10. typedef NS_ENUM(UInt8, ELSmartRingCMD) {
  11. ELSmartRingCMDGetStatus_Type01 = 0x01, //0x01:Type:APP 获取设备状态
  12. ELSmartRingCMDSetCheck_Type02 = 0x02, //0x02:Type:设置体检模式
  13. ELSmartRingCMDCheckData_Type03 = 0x03, //0x03:Type:体检模式数据
  14. //
  15. ELSmartRingCMDDetectionPeriod_Type04 = 0x04, //0x04:Type:P设置/获取日常检测周期
  16. ELSmartRingCMDReocrd_Type05 = 0x05,// 获取日常检测历史记录
  17. ELSmartRingCMDDeviceStatus_Type06 = 0x06,// APP获取设备状态
  18. ELSmartRingCMDSetUnix_Type07 = 0x45,// 设置Unix时间
  19. ELSmartRingCMDSetAutoCheckOpen_Type08 = 0x09,// /* 设置/获取日常检测周期开关 */
  20. ELSmartRingCMDGetJFInfo_Type09 = 0x08,// /* 获取JF传感器信息 */
  21. ELSmartRingCMDSetRRI_Type010 = 0x0b,// /* APP 设置定时监测rri 数量 */
  22. ELSmartRingCMDHaveRecord_Type011 = 0x0c,// /* 设备产生历史记录提示 */
  23. };
  24. typedef NS_ENUM(UInt8, ELSmartRingCMDReocrd) {
  25. ELSmartRingCMDReocrd_Start = 0x00, //0x00:开始获取历史数据
  26. ELSmartRingCMDReocrd_Next = 0x01, //0x01:接收到一帧,请发下一帧
  27. ELSmartRingCMDReocrd_End = 0x02, //0x02:数据接收完毕
  28. ELSmartRingCMDReocrd_delete = 0x03, //0x03:删除历史记录
  29. };
  30. typedef NS_ENUM(UInt8, ELSmartRingDeviceStatus) {
  31. ELSmartRingDeviceStatus_failed = 0x00, //历史时间未就绪(未获取unix时间)
  32. ELSmartRingDeviceStatus_wait = 0x01, //历史时间正在处理中(已获取unix时间,在处理历史数据)
  33. ELSmartRingDeviceStatus_success = 0x02, //历史时间已就绪(此状态才可获取设备历史记录)
  34. };
  35. #endif /* ELSmartRingBleHeader_h */