Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

ELSmartRingBleHeader.h 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. ELSmartRingCMDSetSleepPeriod_Type12 = 0x10,// / /* 设置/获取睡眠步数周期 */
  24. ELSmartRingCMDGetSleepReocrd_Type13 = 0x11,// 获取睡眠/步数历史记录
  25. ELSmartRingCMDHaveSleepReocrd_Type14 = 0x12,// /* 设备产生睡眠/步数历史记录提示 */
  26. ELSmartRingCMDReceviceA7Reply_Type88 = 0x88,// /* APP 收到任何 A7 指令,都需要返回一组确认指令 */
  27. };
  28. typedef NS_ENUM(UInt8, ELSmartRingCMDReocrd) {
  29. ELSmartRingCMDReocrd_Start = 0x00, //0x00:开始获取历史数据
  30. ELSmartRingCMDReocrd_Next = 0x01, //0x01:接收到一帧,请发下一帧
  31. ELSmartRingCMDReocrd_End = 0x02, //0x02:数据接收完毕
  32. ELSmartRingCMDReocrd_delete = 0x03, //0x03:删除历史记录
  33. };
  34. typedef NS_ENUM(UInt8, ELSmartRingDeviceStatus) {
  35. ELSmartRingDeviceStatus_failed = 0x00, //历史时间未就绪(未获取unix时间)
  36. ELSmartRingDeviceStatus_wait = 0x01, //历史时间正在处理中(已获取unix时间,在处理历史数据)
  37. ELSmartRingDeviceStatus_success = 0x02, //历史时间已就绪(此状态才可获取设备历史记录)
  38. };
  39. #endif /* ELSmartRingBleHeader_h */