BTLEDeivceModel.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // BTLEDeivceModel.h
  3. // OneCable
  4. //
  5. // Created by KaRam Kim on 2017. 5. 17..
  6. // Copyright © 2017년 ntels. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <CoreBluetooth/Corebluetooth.h>
  10. @protocol BTLEDeivceModel;
  11. @interface BTLEDeivceModel : NSObject
  12. @property (nonatomic, strong) CBPeripheral *peripheralRef;
  13. @property (nonatomic, strong) NSDictionary *advertisementData;
  14. @property (nonatomic, strong) CBCentralManager *manager;
  15. @property (nonatomic, strong) NSNumber *RSSI;
  16. - (NSString*)advertisedServices;
  17. - (int)txPower;
  18. - (int)channel;
  19. - (BOOL)isConnectable;
  20. - (NSString*)name;
  21. - (NSString*)broadcastData;
  22. -(NSArray*)getServiceList;
  23. @end
  24. @protocol BLEWLanModel;
  25. @interface BLEWLanModel : JDJSONModel
  26. @property (copy, nonatomic) NSString *signal;
  27. @property (copy, nonatomic) NSString *ssid;
  28. @property (copy, nonatomic) NSString *bssid;
  29. @property (copy, nonatomic) NSString *security;
  30. @end
  31. @interface BLEWLanListModel : JDJSONModel
  32. @property (copy, nonatomic) NSArray<BLEWLanModel> *wlan;
  33. @end