![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
#import <ThingBLECentralManager.h>
Properties | |
| BOOL | isPoweredOn |
| NSString * | agentKey |
| CBCentralManager * | cbManager |
| NSArray< ThingBLEPeripheral * > * | discoveredDevices |
| BOOL | shouldAutoDiscoveryWhenCenteralPoweredOn |
Definition at line 11 of file ThingBLECentralManager.h.
| - (void) addConnectionDelegate: | (id< ThingBLECentralManagerSessionDelegate >) | delegate |
Adds a connection delegate.
| delegate | The delegate. |
Provided by category ThingBLECentralManager(Connection).
| - (void) addConnectionDelegate: | (id< ThingBLECentralManagerSessionDelegate >) | delegate |
Adds a connection delegate.
| delegate | The delegate. |
Provided by category ThingBLECentralManager(Connection).
| - (void) addDiscoveryDelegate: | (id< ThingBLECentralManagerDiscoveryDelegate >) | delegate |
Adds a discovery delegate.
| delegate | The discovery delegate. |
Provided by category ThingBLECentralManager(Discovery).
| - (void) addDiscoveryDelegate: | (id< ThingBLECentralManagerDiscoveryDelegate >) | delegate |
Adds a discovery delegate.
| delegate | The discovery delegate. |
Provided by category ThingBLECentralManager(Discovery).
| - (void) cancelConnectionTimer: | (ThingBLEPeripheral *) | peripheral |
Provided by category ThingBLECentralManager(Connection).
| - (void) cancelConnectionTimer: | (ThingBLEPeripheral *) | peripheral |
Provided by category ThingBLECentralManager(Connection).
| - (void) cleanScanedCache |
Clears the discovery cache.
Provided by category ThingBLECentralManager(Discovery).
| - (void) cleanScanedCache |
Clears the discovery cache.
Provided by category ThingBLECentralManager(Discovery).
| - (void) cleanScanedCache: | (NSString *) | service |
Provided by category ThingBLECentralManager(Discovery).
| - (void) cleanScanedCache: | (NSString *) | service |
Provided by category ThingBLECentralManager(Discovery).
| - (void) cleanScanedCacheWithServices: | (NSArray< NSString * > *) | services |
Provided by category ThingBLECentralManager(Discovery).
| - (void) cleanScanedCacheWithServices: | (NSArray< NSString * > *) | services |
Provided by category ThingBLECentralManager(Discovery).
| - (void) connectPeripheral: | (ThingBLEPeripheral *) | peripheral | |
| options: | (nullable NSDictionary< NSString *, id > *) | options | |
| timeout: | (NSTimeInterval) | timeout | |
Connects to a peripheral.
| peripheral | The peripheral to be connected. |
| options | The connection parameters. |
| timeout | The connection timed out. |
Provided by category ThingBLECentralManager(Connection).
| - (void) connectPeripheral: | (ThingBLEPeripheral *) | peripheral | |
| options: | (nullable NSDictionary< NSString *, id > *) | options | |
| timeout: | (NSTimeInterval) | timeout | |
Connects to a peripheral.
| peripheral | The peripheral to be connected. |
| options | The connection parameters. |
| timeout | The connection timed out. |
Provided by category ThingBLECentralManager(Connection).
| - (void) connectPeripheral: | (ThingBLEPeripheral *) | peripheral | |
| timeout: | (NSTimeInterval) | timeout | |
Connects to a peripheral.
| peripheral | The peripheral to be connected. |
| timeout | The connection timed out. |
Provided by category ThingBLECentralManager(Connection).
| - (void) connectPeripheral: | (ThingBLEPeripheral *) | peripheral | |
| timeout: | (NSTimeInterval) | timeout | |
Connects to a peripheral.
| peripheral | The peripheral to be connected. |
| timeout | The connection timed out. |
Provided by category ThingBLECentralManager(Connection).
| - (void) disconnectAllPeripherals |
Disconnects from all peripherals.
Provided by category ThingBLECentralManager(Connection).
| - (void) disconnectAllPeripherals |
Disconnects from all peripherals.
Provided by category ThingBLECentralManager(Connection).
| - (void) disconnectPeripheral: | (ThingBLEPeripheral *) | peripheral | |
| timeout: | (NSTimeInterval) | timeout | |
Disconnects from a peripheral.
| peripheral | The connected peripheral. |
| timeout | The disconnection timed out. |
Provided by category ThingBLECentralManager(Connection).
| - (void) disconnectPeripheral: | (ThingBLEPeripheral *) | peripheral | |
| timeout: | (NSTimeInterval) | timeout | |
Disconnects from a peripheral.
| peripheral | The connected peripheral. |
| timeout | The disconnection timed out. |
Provided by category ThingBLECentralManager(Connection).
| - (nullable instancetype) initWithAgentKey: | (nonnull NSString *) | agentKey |
| - (nullable instancetype) initWithAgentKey: | (nonnull NSString *) | agentKey |
| - (void) removeConnectionDelegate: | (id< ThingBLECentralManagerSessionDelegate >) | delegate |
Removes a connection delegate.
| delegate | The delegate. |
Provided by category ThingBLECentralManager(Connection).
| - (void) removeConnectionDelegate: | (id< ThingBLECentralManagerSessionDelegate >) | delegate |
Removes a connection delegate.
| delegate | The delegate. |
Provided by category ThingBLECentralManager(Connection).
| - (void) removeDiscoveryDelegate: | (id< ThingBLECentralManagerDiscoveryDelegate >) | delegate |
Removes a discovery delegate.
| delegate | The discovery delegate. |
Provided by category ThingBLECentralManager(Discovery).
| - (void) removeDiscoveryDelegate: | (id< ThingBLECentralManagerDiscoveryDelegate >) | delegate |
Removes a discovery delegate.
| delegate | The discovery delegate. |
Provided by category ThingBLECentralManager(Discovery).
| - (NSArray< ThingBLEPeripheral * > *) retrieveConnectedPeripheralsWithServices: | (NSArray< CBUUID * > *) | serviceUUIDs |
Retrieve Connected Peripherals.
| serviceUUIDs | The service UUID. |
Provided by category ThingBLECentralManager(Discovery).
| - (NSArray< ThingBLEPeripheral * > *) retrieveConnectedPeripheralsWithServices: | (NSArray< CBUUID * > *) | serviceUUIDs |
Retrieve Connected Peripherals.
| serviceUUIDs | The service UUID. |
Provided by category ThingBLECentralManager(Discovery).
| - (NSArray< CBPeripheral * > *) retrievePeripheralsWithIdentifiers: | (NSArray< NSUUID * > *) | identifiers |
Provided by category ThingBLECentralManager(Discovery).
| - (NSArray< CBPeripheral * > *) retrievePeripheralsWithIdentifiers: | (NSArray< NSUUID * > *) | identifiers |
Provided by category ThingBLECentralManager(Discovery).
| - (void) scanForPeripherals: | (NSTimeInterval) | timeout |
Discovers all Bluetooth devices.
| timeout | The discovery timed out. |
Provided by category ThingBLECentralManager(Discovery).
| - (void) scanForPeripherals: | (NSTimeInterval) | timeout |
Discovers all Bluetooth devices.
| timeout | The discovery timed out. |
Provided by category ThingBLECentralManager(Discovery).
| - (void) scanForPeripheralsWithServices: | (nullable NSArray< CBUUID * > *) | serviceUUIDs | |
| options: | (nullable NSDictionary< NSString *, id > *) | options | |
| timeout: | (NSTimeInterval) | timeout | |
Discovers all Bluetooth devices.
| timeout | The discovery timed out. |
Provided by category ThingBLECentralManager(Discovery).
| - (void) scanForPeripheralsWithServices: | (nullable NSArray< CBUUID * > *) | serviceUUIDs | |
| options: | (nullable NSDictionary< NSString *, id > *) | options | |
| timeout: | (NSTimeInterval) | timeout | |
Discovers all Bluetooth devices.
| timeout | The discovery timed out. |
Provided by category ThingBLECentralManager(Discovery).
| - (void) stopScan |
Stops discovery.
Provided by category ThingBLECentralManager(Discovery).
| - (void) stopScan |
Stops discovery.
Provided by category ThingBLECentralManager(Discovery).
| - (void) thingble_cancelPreviousPerformRequestsWithTarget: | (nonnull id) | aTarget | |
| selector: | (nonnull SEL) | aSelector | |
| object: | (nullable id) | anArgument | |
| - (void) thingble_cancelPreviousPerformRequestsWithTarget: | (nonnull id) | aTarget | |
| selector: | (nonnull SEL) | aSelector | |
| object: | (nullable id) | anArgument | |
| - (void) thingble_performSelector: | (nonnull SEL) | aSelector | |
| withObject: | (nullable id) | anArgument | |
| afterDelay: | (NSTimeInterval) | delay | |
| - (void) thingble_performSelector: | (nonnull SEL) | aSelector | |
| withObject: | (nullable id) | anArgument | |
| afterDelay: | (NSTimeInterval) | delay | |
|
readwritenonatomicstrong |
Definition at line 20 of file ThingBLECentralManager.h.
|
readnonatomicstrong |
The CBCentralManager object.
Definition at line 24 of file ThingBLECentralManager.h.
|
readnonatomicstrong |
The discovered devices.
Provided by category ThingBLECentralManager(Discovery).
Definition at line 18 of file ThingBLECentralManager+Discovery.h.
|
readnonatomicassign |
Specifies whether to enable Bluetooth.
Definition at line 16 of file ThingBLECentralManager.h.
|
readwritenonatomicassign |
Provided by category ThingBLECentralManager(Discovery).
Definition at line 20 of file ThingBLECentralManager+Discovery.h.