iOS AILinkBleSDK - 蓝牙SDK
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

ELMeatProbeCustomDataModel.h 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. //
  2. // ELMeatProbeCustomDataModel.h
  3. // AILinkBleSDK
  4. //
  5. #import <Foundation/Foundation.h>
  6. #import <AILinkBleSDK/ELMeatProbeBleTool.h>
  7. NS_ASSUME_NONNULL_BEGIN
  8. #pragma pack(1)
  9. typedef struct ELMeatProbeCustomDataStruct {
  10. UInt8 ver; //数据版本 (当前版本 0x02) //数据总长度: modelSize()
  11. UInt32 cookingId; //烧烤id (选择食物的时间戳)
  12. UInt8 foodType; //食物类型
  13. UInt8 foodRawness; //食物熟度
  14. SInt16 targetTemperature_C; //食物目标温度:℃
  15. SInt16 targetTemperature_F; //食物目标温度:℉
  16. SInt16 ambientMinTemperature_C; //炉温目标下限:℃
  17. SInt16 ambientMinTemperature_F; //炉温目标下限:℉
  18. SInt16 ambientMaxTemperature_C; //炉温目标上限:℃
  19. SInt16 ambientMaxTemperature_F; //炉温目标上限:℉
  20. double alarmTemperaturePercent; //提醒温度对目标温度百分比 0~1.0
  21. UInt32 timerStart;//计时开始时间戳
  22. UInt32 timerEnd;//计时结束时间戳
  23. UInt8 currentUnit; //当前温度单位
  24. SInt16 alarmTemperature_C; //食物提醒温度:℃
  25. SInt16 alarmTemperature_F; //食物提醒温度:℉
  26. UInt8 remarkBytes[32]; //UTF-8 编码
  27. } ELMeatProbeCustomDataStruct;
  28. #pragma pack()
  29. ///
  30. @interface ELMeatProbeCustomDataModel : NSObject
  31. @property (nonatomic, assign) ELMeatProbeCustomDataStruct customStruct;
  32. @property (nonatomic, assign, readonly) NSInteger ver;
  33. @property (nonatomic, assign, readonly) NSInteger cookingId;
  34. @property (nonatomic, assign, readonly) NSInteger foodType;
  35. @property (nonatomic, assign, readonly) NSInteger foodRawness;
  36. @property (nonatomic, assign) double alarmTemperaturePercent;
  37. @property (nonatomic, assign, readonly) ELDeviceTemperatureUnit currentUnit;
  38. + (instancetype _Nullable)modelWithData:(NSData *)data;
  39. - (NSData *)dataValue;
  40. - (NSString *)remark;
  41. - (NSString *)setRemark:(NSString *)remark;
  42. + (Byte)version;
  43. + (Byte)modelSize;
  44. @end
  45. NS_ASSUME_NONNULL_END