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.

ELBfsLeaOneDataModel.h 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // ELBfsLeaOneDataModel.h
  3. // Elink
  4. //
  5. // Created by cliCk on 2021/1/16.
  6. // Copyright © 2021 iot_iMac. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "ELBroadcastScaleBleHeader.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. typedef NS_ENUM(NSInteger, LeaOneDevType) {
  12. /** 体重秤 */
  13. LeaOneDevType_Weight = 0 ,
  14. /** 体脂秤 */
  15. LeaOneDevType_Bfr ,
  16. };
  17. /** lea one 秤返回的数据对象模型 */
  18. @interface ELBfsLeaOneDataModel : NSObject
  19. /** 流水号 */
  20. @property (nonatomic, assign) NSInteger serialNumber;
  21. /** 设备返回的原始体重 */
  22. @property (nonatomic, assign) NSInteger rawWeight;
  23. /** 电阻 */
  24. @property (nonatomic, assign) NSInteger adc;
  25. /** mac地址 */
  26. @property (nonatomic, copy) NSString *mac;
  27. /** 设备类型 */
  28. @property (nonatomic, assign) LeaOneDevType devType;
  29. /** 单位 (仅支持 kg,斤,lb和st:lb) */
  30. @property (nonatomic, assign) ELDeviceWeightUnit unit;
  31. /** 小数位 */
  32. @property (nonatomic, assign) NSInteger weightPoint;
  33. /** 是否为锁定数据 */
  34. @property (nonatomic, assign) BOOL isLockData;
  35. + (instancetype)initWithDevBleData:(NSData *)data;
  36. + (BOOL)isLeaOneBroadcastScale:(NSData *)baseData;
  37. @end
  38. NS_ASSUME_NONNULL_END