iOS AILinkBleSDK - 蓝牙SDK
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

ELAirDetectorBleHeader.h 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. //
  2. // ELAirDetectorBleHeader.h
  3. // Pods
  4. //
  5. // Created by LarryZhang on 2022/12/13.
  6. //
  7. #ifndef ELAirDetectorBleHeader_h
  8. #define ELAirDetectorBleHeader_h
  9. typedef NS_ENUM(NSUInteger, ELAirDetectorBleCMD) {
  10. ELAirDetectorBleCMD01 = 0x01, //CMD:获取设备支持的功能列表
  11. ELAirDetectorBleCMD02 = 0x02, //CMD:设备返回功能
  12. ELAirDetectorBleCMD03 = 0x03, //CMD:获取设备状态
  13. ELAirDetectorBleCMD04 = 0x04, //CMD:设备返回状态
  14. ELAirDetectorBleCMD05 = 0x05, //CMD:设置/获取参数功能
  15. ELAirDetectorBleCMD06 = 0x06, //CMD:MCU返回参数功能
  16. ELAirDetectorBleCMD07 = 0x07, //CMD:定时心跳包
  17. ELAirDetectorBleCMD08 = 0x08, //CMD:模块返回心跳包
  18. ELAirDetectorBleCMDF1 = 0xF1, //CMD:上发保存数据
  19. };
  20. typedef NS_ENUM(NSUInteger, ELAirDetectorTLVType) {
  21. ELAirDetectorTLVTypeHCHO = 0x01, //甲醛
  22. ELAirDetectorTLVTypeTemperature = 0x02, //温度
  23. ELAirDetectorTLVTypeHumidity = 0x03, //湿度
  24. ELAirDetectorTLVTypePM2_5 = 0x04, //PM2.5
  25. ELAirDetectorTLVTypePM1 = 0x05, //PM1
  26. ELAirDetectorTLVTypePM10 = 0x06, //PM10
  27. ELAirDetectorTLVTypeVOC = 0x07,
  28. ELAirDetectorTLVTypeCO2 = 0x08,
  29. ELAirDetectorTLVTypeAQI = 0x09,
  30. ELAirDetectorTLVTypeSettingAlert = 0x0A, //报警功能
  31. ELAirDetectorTLVTypeSettingVolume = 0x0B, //音量
  32. ELAirDetectorTLVTypeSettingAlertDuration = 0x0C, //报警时长
  33. ELAirDetectorTLVTypeSettingAlertRing = 0x0D, //报警铃声
  34. ELAirDetectorTLVTypeSettingDeviceError = 0x0E, //设备故障
  35. ELAirDetectorTLVTypeSettingDeviceSelfTest = 0x0F, //设备自检
  36. ELAirDetectorTLVTypeTVOC = 0x10, //TVOC
  37. ELAirDetectorTLVTypeSwitchTemperatureUnit = 0x11, //单位切换
  38. ELAirDetectorTLVTypeBatteryState = 0x12, //电池状态
  39. ELAirDetectorTLVTypeBindDevice = 0x13, //设备绑定
  40. ELAirDetectorTLVTypeHeartbeat = 0x14, //心跳包(用以模块和APP通信)
  41. ELAirDetectorTLVTypeCO = 0x15, //CO(一氧化碳)
  42. ELAirDetectorTLVTypeAlarm = 0x16, //闹钟功能
  43. ELAirDetectorTLVTypeRestoreFactorySetting = 0x17, //恢复出厂设置
  44. ELAirDetectorTLVTypeCalibrationParameter = 0x18, //参数校准
  45. ELAirDetectorTLVTypeTimeFormat = 0x19, //时间格式
  46. ELAirDetectorTLVTypeDeviceBrightness = 0x1A, //设备亮度
  47. ELAirDetectorTLVTypeKeySound = 0x1B, //按键音效
  48. ELAirDetectorTLVTypeAlertSound = 0x1C, //报警音效
  49. ELAirDetectorTLVTypeIconDisplay = 0x1D, //图标显示
  50. ELAirDetectorTLVTypeMonitoringDisplayData = 0x1E, //监控显示数据
  51. ELAirDetectorTLVTypeDataDisplayMode = 0x1F, //数据显示模式
  52. };
  53. #endif /* ELAirDetectorBleHeader_h */