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.

DeviceModel.h 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. // InetBleSDK
  3. //
  4. // Created by iot_wz on 2018/9/1.
  5. // Copyright © 2018年 iot_wz. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import <CoreBluetooth/CoreBluetooth.h>
  9. @interface DeviceModel : NSObject
  10. @property(nonatomic, copy) NSString *deviceUUIDString;
  11. @property(nonatomic, copy) NSString *deviceName;
  12. /**
  13. ble scale type:
  14. 0: broadcast
  15. 1: broadcast(temperature)
  16. 2: linkScale
  17. 3: linkScale(temperature)
  18. */
  19. @property(nonatomic, strong) NSNumber *acNumber;
  20. @property(nonatomic, copy) NSString *deviceAddress;
  21. @property(nonatomic, assign) BOOL deviceIsLight;
  22. //algorithm(so far only used for BM15)
  23. //@property (nonatomic,assign) NSInteger Algorithm_number;
  24. //DID
  25. @property (nonatomic,assign) NSInteger DID_number;
  26. /**
  27. -centralManager:didDiscoverPeripheral:advertisementData:RSSI
  28. this DeviceModel created base on this peripheral
  29. */
  30. @property (strong, nonatomic) CBPeripheral *peripheral;
  31. @end
  32. /*
  33. deviceUUIDString : CA2A7E77-D709-4F29-1552-AE69BC4A3752;
  34. deviceName : SWAN;
  35. acNumber : 2;
  36. deviceAddress : 03:B3:EC:8F:70:76;
  37. deviceIsLight : 0;
  38. Algorithm_number : 0;
  39. DID_number : 0;
  40. */