iOS AILinkBleSDK - 蓝牙SDK
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

ELHeightGaugeBleManager.h 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //
  2. // ELForeHeadBleManager.h
  3. // Elink
  4. //
  5. // Created by iot_user on 2019/4/18.
  6. // Copyright © 2019 iot_iMac. All rights reserved.
  7. //
  8. #import "ELBluetoothManager.h"
  9. #import "ELHeightGaugeBleDataModel.h"
  10. #import "ELHeightGaugeHeader.h"
  11. typedef NS_ENUM(NSUInteger, HeightGaugeBleDataType) {
  12. HeightGaugeBleDataTypeStabilityData = 0x01, //stable temperature
  13. HeightGaugeBleDataTypeAppSendUnit = 0x81, //set unit
  14. HeightGaugeBleDataTypeSetUnitResult = 0x82, //result of set unit
  15. HeightGaugeBleDataTypeFailCode = 0xFF, //error code
  16. };
  17. @protocol ELHeightGaugeBleManagerDelegate <NSObject>
  18. @optional
  19. /**
  20. call back ble status
  21. */
  22. -(void)heightGaugeBleManagerUpdateBleState:(ELBluetoothState)state;
  23. /**
  24. call back ble scan devices model
  25. */
  26. -(void)heightGaugeBleManagerScanDevices:(NSArray<ELPeripheralModel *> *_Nullable)devices;
  27. /**
  28. call back ELHeightGaugeBleDataModel
  29. */
  30. -(void)heightGaugeBleManagerReceiceTestData:(ELHeightGaugeBleDataModel *_Nonnull)model;
  31. /**
  32. call back the result of set unit
  33. */
  34. -(void)heightGaugeBleManagerReceiveSetUnitResult:(ELSetBluetoothResponseType)type;
  35. /**
  36. call back fail code
  37. */
  38. -(void)heightGaugeBleManagerReceiveFailCode:(ELHeightGaugeFailCode)code;
  39. @end
  40. NS_ASSUME_NONNULL_BEGIN
  41. @interface ELHeightGaugeBleManager : ELBluetoothManager
  42. @property (nonatomic, weak) id<ELHeightGaugeBleManagerDelegate> heightGaugeDelegate;
  43. +(instancetype)shareManager;
  44. -(void)changeUnit:(ELDeviceHeightUnit)unit;
  45. @end
  46. NS_ASSUME_NONNULL_END