Tuya iOS Smart Life App SDK 5.15.0
ThingSmartBleGatewayService Class Reference

#import <ThingSmartBleGatewayService.h>

Inheritance diagram for ThingSmartBleGatewayService:

Instance Methods

(void) - addDelegate:
 
(void) - removeDelegate:
 
(void) - addDevices:toGateway:
 
(void) - removeDevice:fromGateway:success:failure:
 
(void) - deviceListFromGateway:success:failure:
 
(void) - connectDevIdList:WithGateWayId:
 
(void) - disconnectDevIdList:WithGateWayId:
 
(void) - checkAndSendHeardBeatWithGatewayIdList:
 
(void) - stopHeartBeat
 stop heart beat More...
 
(void) - addDelegate:
 
(void) - removeDelegate:
 
(void) - addDevices:toGateway:
 
(void) - removeDevice:fromGateway:success:failure:
 
(void) - deviceListFromGateway:success:failure:
 
(void) - connectDevIdList:WithGateWayId:
 
(void) - disconnectDevIdList:WithGateWayId:
 
(void) - checkAndSendHeardBeatWithGatewayIdList:
 
(void) - stopHeartBeat
 stop heart beat More...
 

Detailed Description

Definition at line 45 of file ThingSmartBleGatewayService.h.

Method Documentation

◆ addDelegate: [1/2]

- (void) addDelegate: (id< ThingBleGatewayServiceAddDeviceDelegate >)  delegate

add device delegate

Parameters
delegatedelegate

◆ addDelegate: [2/2]

- (void) addDelegate: (id< ThingBleGatewayServiceAddDeviceDelegate >)  delegate

add device delegate

Parameters
delegatedelegate

◆ addDevices:toGateway: [1/2]

- (void) addDevices: (NSArray< NSString * > *)  devIdList
toGateway: (NSString *)  gatewayId 

add device to gateway

Parameters
gatewayIdgateway id
devIdListdevice id list

◆ addDevices:toGateway: [2/2]

- (void) addDevices: (NSArray< NSString * > *)  devIdList
toGateway: (NSString *)  gatewayId 

add device to gateway

Parameters
gatewayIdgateway id
devIdListdevice id list

◆ checkAndSendHeardBeatWithGatewayIdList: [1/2]

- (void) checkAndSendHeardBeatWithGatewayIdList: (NSArray< NSString * > *)  gatewayIdList

check heart beat

Parameters
gatewayIdListgateway id list

◆ checkAndSendHeardBeatWithGatewayIdList: [2/2]

- (void) checkAndSendHeardBeatWithGatewayIdList: (NSArray< NSString * > *)  gatewayIdList

check heart beat

Parameters
gatewayIdListgateway id list

◆ connectDevIdList:WithGateWayId: [1/2]

- (void) connectDevIdList: (NSArray< NSString * > *)  devIdList
WithGateWayId: (NSString *)  gwId 

connect device id list

Parameters
devIdListdevice list
gwIdgateway id

◆ connectDevIdList:WithGateWayId: [2/2]

- (void) connectDevIdList: (NSArray< NSString * > *)  devIdList
WithGateWayId: (NSString *)  gwId 

connect device id list

Parameters
devIdListdevice list
gwIdgateway id

◆ deviceListFromGateway:success:failure: [1/2]

- (void) deviceListFromGateway: (NSString *)  gatewayId
success: (nullable void(^)(NSArray< ThingSmartDeviceModel * > *subDeviceList))  successBlock
failure: (nullable ThingFailureError failureBlock 

get device list

Parameters
gatewayIdgateway id
successBlocksuccess block
failureBlockfailure block

◆ deviceListFromGateway:success:failure: [2/2]

- (void) deviceListFromGateway: (NSString *)  gatewayId
success: (nullable void(^)(NSArray< ThingSmartDeviceModel * > *subDeviceList))  successBlock
failure: (nullable ThingFailureError failureBlock 

get device list

Parameters
gatewayIdgateway id
successBlocksuccess block
failureBlockfailure block

◆ disconnectDevIdList:WithGateWayId: [1/2]

- (void) disconnectDevIdList: (NSArray< NSString * > *)  devIdList
WithGateWayId: (NSString *)  gwId 

disconnect device id list

Parameters
devIdListdevice id list
gwIdgateway id

◆ disconnectDevIdList:WithGateWayId: [2/2]

- (void) disconnectDevIdList: (NSArray< NSString * > *)  devIdList
WithGateWayId: (NSString *)  gwId 

disconnect device id list

Parameters
devIdListdevice id list
gwIdgateway id

◆ removeDelegate: [1/2]

- (void) removeDelegate: (id< ThingBleGatewayServiceAddDeviceDelegate >)  delegate

remove delegate

Parameters
delegatedelegate

◆ removeDelegate: [2/2]

- (void) removeDelegate: (id< ThingBleGatewayServiceAddDeviceDelegate >)  delegate

remove delegate

Parameters
delegatedelegate

◆ removeDevice:fromGateway:success:failure: [1/2]

- (void) removeDevice: (NSString *)  deviceId
fromGateway: (NSString *)  gatewayId
success: (ThingSuccessHandler successBlock
failure: (ThingFailureError failureBlock 

remove device from gateway

Parameters
deviceIdde
gatewayIdgateway Id
successBlocksuccess block
failureBlockfailure block

◆ removeDevice:fromGateway:success:failure: [2/2]

- (void) removeDevice: (NSString *)  deviceId
fromGateway: (NSString *)  gatewayId
success: (ThingSuccessHandler successBlock
failure: (ThingFailureError failureBlock 

remove device from gateway

Parameters
deviceIdde
gatewayIdgateway Id
successBlocksuccess block
failureBlockfailure block

◆ stopHeartBeat [1/2]

- (void) stopHeartBeat

stop heart beat

◆ stopHeartBeat [2/2]

- (void) stopHeartBeat

stop heart beat


The documentation for this class was generated from the following files: