iOS AILinkBleSDK - 蓝牙SDK
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

ELCoffeeScaleBleDataModel.h 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //
  2. // ELCoffeeScaleBleDataModel.h
  3. // Elink
  4. //
  5. // Created by iot_user on 2020/9/30.
  6. // Copyright © 2020 iot_iMac. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. #import "ELCoffeeScaleBleHeader.h"
  11. NS_ASSUME_NONNULL_BEGIN
  12. @interface ELCoffeeScaleBleDataModel : NSObject
  13. /** 是否为稳定数据 */
  14. @property (nonatomic, assign) BOOL stableData;
  15. /** 质量单位 */
  16. @property (nonatomic, assign) ELDeviceWeightUnit weightUnit;
  17. /** 质量值 */
  18. @property (nonatomic, copy) NSString *weightString;
  19. /** 质量值 */
  20. @property (nonatomic, assign) CGFloat weightValue;
  21. /** 温度单位 */
  22. @property (nonatomic, assign) ELDeviceTemperatureUnit temUnit;
  23. /** 温度值 */
  24. @property (nonatomic, assign) CGFloat tem;
  25. /** 时间戳 */
  26. @property (nonatomic, assign) NSTimeInterval timestamp;
  27. //质量正负标识
  28. @property (nonatomic, assign) BOOL rawWeightNegative;
  29. //质量小数点位
  30. @property (nonatomic, assign) NSInteger rawWeightPoint;
  31. //质量
  32. @property (nonatomic, assign) NSInteger rawWeight;
  33. //异常状态 0无异常 1超重
  34. @property (nonatomic, assign) NSInteger error;
  35. + (instancetype)dataWithPayloadData:(NSData *)data;
  36. @end
  37. NS_ASSUME_NONNULL_END