iOS AILinkBleSDK - 蓝牙SDK
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.

ELMeatProbeBleModel.h 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // ELMeatProbeBleModel.h
  3. // AILinkBleSDK
  4. //
  5. // Created by LarryZhang on 2022/11/22.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import "ELMeatProbeBleTool.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. ///
  11. @interface ELMeatProbeBleModel : NSObject
  12. @property (nonatomic, assign, readonly) UInt8 ver; //数据版本 (当前版本 0x01) //数据总长度: modelSize()
  13. @property (nonatomic, assign) UInt32 cookingId; //烧烤id (选择食物的时间戳)
  14. @property (nonatomic, assign) UInt8 foodType; //食物类型
  15. @property (nonatomic, assign) UInt8 foodRawness; //食物熟度
  16. @property (nonatomic, assign) UInt16 targetRawTemperature; //食物目标温度 Bit15: 单位(0:℃ 。 1:℉) Bit14:正负(0:温度为正值。1:温度为负值) Bit13-Bit0:温度值。
  17. @property (nonatomic, assign, readonly) NSInteger targetTemperature;
  18. @property (nonatomic, assign, readonly) ELDeviceTemperatureUnit targetTemperatureUnit;
  19. @property (nonatomic, assign) UInt16 ambientMinRawTemperature; //炉温目标下限 Bit15: 单位(0:℃ 。 1:℉) Bit14:正负(0:温度为正值。1:温度为负值) Bit13-Bit0:温度值。
  20. @property (nonatomic, assign, readonly) NSInteger ambientMinTemperature;
  21. @property (nonatomic, assign, readonly) ELDeviceTemperatureUnit ambientMinTemperatureUnit;
  22. @property (nonatomic, assign) UInt16 ambientMaxRawTemperature; //炉温目标上限 Bit15: 单位(0:℃ 。 1:℉) Bit14:正负(0:温度为正值。1:温度为负值)Bit13-Bit0:温度值。
  23. @property (nonatomic, assign, readonly) NSInteger ambientMaxTemperature;
  24. @property (nonatomic, assign, readonly) ELDeviceTemperatureUnit ambientMaxTemperatureUnit;
  25. @property (nonatomic, assign) UInt32 timerStart;//计时开始时间戳
  26. @property (nonatomic, assign) UInt32 timerEnd;//计时结束时间戳
  27. @property (nonatomic, assign) ELDeviceTemperatureUnit currentUnit; //当前温度单位
  28. - (instancetype)initWithData:(NSData *)data;
  29. + (ELMeatProbeBleModel *)modelWithData:(NSData *)data;
  30. - (NSData *)dataValue;
  31. @end
  32. NS_ASSUME_NONNULL_END