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.

ELHeightGaugeBleManager.h 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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