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.

ELFasciaGunBleManager.h 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. //
  2. // ELFasciaGunBleManager.h
  3. // AILinkBleSDK
  4. //
  5. // Created by LarryZhang on 2022/1/15.
  6. // Copyright © 2022 IOT. All rights reserved.
  7. //
  8. #import "ELBluetoothManager.h"
  9. #import "ELFasciaGunBleDataModel.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. @protocol FasciaGunBleDelegate;
  12. @interface ELFasciaGunBleManager : ELBluetoothManager
  13. @property (nonatomic, weak) id<FasciaGunBleDelegate> fasciaGunDelegate;
  14. + (instancetype)shareManager;
  15. - (void)autoScan;
  16. - (void)stopAutoScan;
  17. - (void)checkStatus;
  18. @end
  19. @interface ELFasciaGunBleManager (sendCmd)
  20. - (void)sendCmdToDeviceStart:(BOOL)started withGear:(UInt8)gear;
  21. - (void)sendCmdToDeviceGear:(UInt8)gear;
  22. - (void)sendCmdToDeviceCountdown:(UInt16)timeInterval enable:(BOOL)enabled;
  23. @end
  24. @protocol FasciaGunBleDelegate <NSObject>
  25. @optional
  26. /// 蓝牙连接状态
  27. /// @param state 连接状态
  28. - (void)fasciaGunBleReceiveState:(ELBluetoothState)state;
  29. /// 附近的设备
  30. /// @param devices 设备列表
  31. - (void)fasciaGunBleReceiveDevices:(NSArray<ELPeripheralModel *> *_Nullable)devices;
  32. //正在连接中倒计时
  33. - (void)fasciaGunBleCountDown:(NSInteger)count;
  34. - (void)fasciaGunBleReceiveStatusDataModel:(ELFasciaGunBleDataModel *_Nonnull)model;
  35. - (void)fasciaGunBleReceiveStart:(BOOL)started withGear:(UInt8)gear;
  36. - (void)fasciaGunBleReceiveGear:(UInt8)gear;
  37. - (void)fasciaGunBleReceiveCountdown:(UInt16)timeInterval enabled:(BOOL)enabled;
  38. @end
  39. NS_ASSUME_NONNULL_END