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.

ELCM02_BatteryBleModel.h 905B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // ELCM02_BatteryBleModel.h
  3. // AILinkBleSDK
  4. //
  5. // Created by cliCk on 2021/9/13.
  6. // Copyright © 2021 IOT. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "ELCM02_BleHeader.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. /** 电池信息蓝牙数据模型 */
  12. @interface ELCM02_BatteryBleModel : NSObject
  13. /** 电池温度,摄氏度 */
  14. @property (nonatomic, assign) float tem;
  15. /** 电流状态 */
  16. @property (nonatomic, assign) enum CM02_BatteryElectricCurrent_Type state;
  17. /** 电流 A 正数位放电电流,负数为充电电流 */
  18. @property (nonatomic, assign) float electricCurrent;
  19. /** 电压 V */
  20. @property (nonatomic, assign) float voltage;
  21. /** 电池总容量 mAh */
  22. @property (nonatomic, assign) NSInteger capacitance;
  23. /** 电池充放电次数 */
  24. @property (nonatomic, assign) NSInteger chargeTimes;
  25. + (instancetype)instanceWithBleData:(NSData *)data;
  26. @end
  27. NS_ASSUME_NONNULL_END