The delegate for scanning and notifications of Bluetooth status changes.
More...
#import <ThingSmartBLEManager.h>
The delegate for scanning and notifications of Bluetooth status changes.
Definition at line 41 of file ThingSmartBLEManager.h.
◆ bleManager:didFinishActivateDevice:error: [1/2]
- (void) bleManager: |
|
(ThingSmartBLEManager *) |
manager |
didFinishActivateDevice: |
|
(nullable id) |
deviceModel |
error: |
|
(nullable NSError *) |
error |
|
|
| |
|
optional |
The result of activating Bluetooth LE devices.
- Parameters
-
manager | The class. |
deviceModel | Called when the task is finished. DeviceModel is returned. |
error | Called when the task is interrupted by an error. |
◆ bleManager:didFinishActivateDevice:error: [2/2]
- (void) bleManager: |
|
(ThingSmartBLEManager *) |
manager |
didFinishActivateDevice: |
|
(nullable id) |
deviceModel |
error: |
|
(nullable NSError *) |
error |
|
|
| |
|
optional |
The result of activating Bluetooth LE devices.
- Parameters
-
manager | The class. |
deviceModel | Called when the task is finished. DeviceModel is returned. |
error | Called when the task is interrupted by an error. |
◆ bleManagerDeviceListDataSource [1/2]
Data source for the device list.
◆ bleManagerDeviceListDataSource [2/2]
Data source for the device list.
◆ bleReceiveTransparentData:devId: [1/2]
- (void) bleReceiveTransparentData: |
|
(NSData *) |
data |
devId: |
|
(NSString *) |
devId |
|
|
| |
|
optional |
Receives the transmission data from the device.
- Parameters
-
data | Transmission data that is sent by the device. |
devId | The device ID. |
◆ bleReceiveTransparentData:devId: [2/2]
- (void) bleReceiveTransparentData: |
|
(NSData *) |
data |
devId: |
|
(NSString *) |
devId |
|
|
| |
|
optional |
Receives the transmission data from the device.
- Parameters
-
data | Transmission data that is sent by the device. |
devId | The device ID. |
◆ bluetoothDidUpdateState: [1/2]
- (void) bluetoothDidUpdateState: |
|
(BOOL) |
isPoweredOn |
|
|
optional |
The notification for Bluetooth status changes.
- Parameters
-
isPoweredOn | Indicates the Bluetooth status. Valid values: on and off . |
◆ bluetoothDidUpdateState: [2/2]
- (void) bluetoothDidUpdateState: |
|
(BOOL) |
isPoweredOn |
|
|
optional |
The notification for Bluetooth status changes.
- Parameters
-
isPoweredOn | Indicates the Bluetooth status. Valid values: on and off . |
◆ didDiscoveryDeviceWithDeviceInfo: [1/2]
The result of scanning inactive devices.
- Parameters
-
deviceInfo | The advertisingData model for the inactive device. |
◆ didDiscoveryDeviceWithDeviceInfo: [2/2]
The result of scanning inactive devices.
- Parameters
-
deviceInfo | The advertisingData model for the inactive device. |
◆ didDiscoveryDeviceWithUUID:productKey: [1/2]
- (void) didDiscoveryDeviceWithUUID: |
|
(NSString *) |
uuid |
productKey: |
|
("This method is) |
deprecated |
|
|
(Use ThingSmartBLEManager::didDiscoveryDeviceWithDeviceInfo:instead") |
__deprecated_msg |
|
|
| |
|
optional |
The result of scanning inactive devices.
- Parameters
-
uuid | The device UUID. |
productKey | The product ID for the device. |
- Deprecated:
- This method is deprecated. Use ThingSmartBLEManager::didDiscoveryDeviceWithDeviceInfo: instead.
◆ didDiscoveryDeviceWithUUID:productKey: [2/2]
- (void) didDiscoveryDeviceWithUUID: |
|
(NSString *) |
uuid |
productKey: |
|
("This method is) |
deprecated |
|
|
(Use ThingSmartBLEManager::didDiscoveryDeviceWithDeviceInfo:instead") |
__deprecated_msg |
|
|
| |
|
optional |
The result of scanning inactive devices.
- Parameters
-
uuid | The device UUID. |
productKey | The product ID for the device. |
- Deprecated:
- This method is deprecated. Use ThingSmartBLEManager::didDiscoveryDeviceWithDeviceInfo: instead.
◆ getWeatherWithDevId:codes:useLocation:completion: [1/2]
- (void) getWeatherWithDevId: |
|
(NSString *) |
devId |
codes: |
|
(NSString *) |
codes |
useLocation: |
|
(BOOL) |
whetherUse |
completion: |
|
("This method is) |
deprecated |
|
|
(Use newGetWeatherWithDevId:codes:useLocation:completion:instead") |
__deprecated_msg |
|
|
| |
|
optional |
Get weather information
- Parameters
-
devId | The device ID. |
codes | codes |
whetherUse | Whether to request weather information using location information |
completion | completion |
◆ getWeatherWithDevId:codes:useLocation:completion: [2/2]
- (void) getWeatherWithDevId: |
|
(NSString *) |
devId |
codes: |
|
(NSString *) |
codes |
useLocation: |
|
(BOOL) |
whetherUse |
completion: |
|
("This method is) |
deprecated |
|
|
(Use newGetWeatherWithDevId:codes:useLocation:completion:instead") |
__deprecated_msg |
|
|
| |
|
optional |
Get weather information
- Parameters
-
devId | The device ID. |
codes | codes |
whetherUse | Whether to request weather information using location information |
completion | completion |
◆ newGetWeatherWithDevId:codes:useLocation:completion: [1/2]
- (void) newGetWeatherWithDevId: |
|
(NSString *) |
devId |
codes: |
|
(NSString *) |
codes |
useLocation: |
|
(BOOL) |
whetherUse |
completion: |
|
(void(^)(NSDictionary *_Nullable weatherData)) |
completion |
|
|
| |
|
optional |
◆ newGetWeatherWithDevId:codes:useLocation:completion: [2/2]
- (void) newGetWeatherWithDevId: |
|
(NSString *) |
devId |
codes: |
|
(NSString *) |
codes |
useLocation: |
|
(BOOL) |
whetherUse |
completion: |
|
(void(^)(NSDictionary *_Nullable weatherData)) |
completion |
|
|
| |
|
optional |
◆ onCentralDidDisconnectFromDevice:error: [1/2]
- (void) onCentralDidDisconnectFromDevice: |
|
(NSString *) |
devId |
error: |
|
(NSError *) |
error |
|
|
| |
|
optional |
The result of disconnecting the device.
- Parameters
-
devId | The device ID. |
error | An error occurs while processing the request. |
◆ onCentralDidDisconnectFromDevice:error: [2/2]
- (void) onCentralDidDisconnectFromDevice: |
|
(NSString *) |
devId |
error: |
|
(NSError *) |
error |
|
|
| |
|
optional |
The result of disconnecting the device.
- Parameters
-
devId | The device ID. |
error | An error occurs while processing the request. |
The documentation for this protocol was generated from the following files:
- /Users/humtong/Downloads/Pods_副本/ThingSmartBLECoreKit/Build/ThingSmartBLECoreKit.xcframework/ios-arm64_x86_64-simulator/ThingSmartBLECoreKit.framework/Headers/ThingSmartBLEManager.h
- /Users/humtong/Downloads/Pods_副本/ThingSmartBLECoreKit/Build/ThingSmartBLECoreKit.xcframework/ios-arm64/ThingSmartBLECoreKit.framework/Headers/ThingSmartBLEManager.h