iOS AILinkBleSDK - 蓝牙SDK
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

ELAIFitScaleBleManager.h 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. //
  2. // ELAIFitScaleBleManager.h
  3. // Pods
  4. //
  5. // Created by LarryZhang on 2023/8/11.
  6. //
  7. #import "ELBluetoothManager.h"
  8. #import "ELAIFitScaleBleHeader.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @class ELAIFitScaleBleDataModel,ELAIFitScaleBleUserModel;
  11. @protocol AIFitScaleBleDelegate;
  12. @interface ELAIFitScaleBleManager : ELBluetoothManager
  13. @property(nonatomic, weak) id <AIFitScaleBleDelegate> aifitScaleBleDelegate;
  14. + (instancetype)shareManager;
  15. @end
  16. @interface ELAIFitScaleBleManager ()
  17. - (void)autoScan;
  18. - (void)stopAutoScan;
  19. - (void)checkStatus;
  20. @end
  21. @interface ELAIFitScaleBleManager ()
  22. - (void)aIFitSendSwitUnit:(AIFitScaleWeightUnit)unit;
  23. - (void)aIFitSendRequestBMVer;
  24. - (void)aIFitSendSyncDateTime;
  25. - (void)aIFitSendCurrentUserInfoWithUserId:(NSInteger)userId Sex:(NSInteger)sex Age:(NSInteger)age Height:(NSInteger)height;
  26. - (void)aIFitSendCurrentUserInfoList:(NSArray *)userList;
  27. - (void)aIFitSendRequestHistory ;
  28. @end
  29. @protocol AIFitScaleBleDelegate <NSObject>
  30. @optional
  31. /// 蓝牙连接状态
  32. /// @param state 连接状态
  33. - (void)deviceBleReceiveState:(ELBluetoothState)state;
  34. /// @param result :秤进入低功耗模式(秤黑屏)
  35. - (void)deviceBleReceiveDevicesLightOff:(BOOL)result;
  36. /// 附近的设备
  37. /// @param devices 设备列表
  38. - (void)deviceBleReceiveDevices:(NSArray<ELPeripheralModel *> *_Nullable)devices;
  39. //正在连接中倒计时
  40. - (void)deviceBleCountDown:(NSInteger)count;
  41. //ble version
  42. - (void)firmwareVersion:(NSString *)version;
  43. - (void)bluetoothReceivePassData:(NSData *)data;
  44. - (void)blueToothBackConnectScaleWeightData:(ELAIFitScaleBleDataModel *)model status:(MeasureStatus)status;
  45. - (void)blueToothBackAdc:(NSUInteger)adc status:(AdcMeasureStatus)status;
  46. - (void)blueToothBackHistoryDataModel:(ELAIFitScaleBleUserModel *)userModel bodyDataModel:(ELAIFitScaleBleDataModel*)dataModel status:(HistoryStatus)status;
  47. - (void)blueToothBackAlgorithmNumber:(NSUInteger)algorithmNo;
  48. - (void)blueToothBackWriteCurrentUserResult:(BOOL)result;
  49. - (void)blueToothBackChangeUnitResult:(BOOL)result;
  50. - (void)blueToothBackWriteAppTimeToBleResult:(BOOL)result;
  51. - (void)blueToothBackWriteOfflineUserListResult:(BOOL)result;
  52. - (void)blueToothBackUpdateOfflineSingleUserResult:(BOOL)result;
  53. @end
  54. NS_ASSUME_NONNULL_END