Tuya iOS Smart Life App SDK 5.15.0
ThingSmartSocketChannel Class Reference

#import <ThingSmartSocketChannel.h>

Inheritance diagram for ThingSmartSocketChannel:

Instance Methods

(void) - configKeys:broadcastKey:sendKey:
 
(void) - initTcpClientWithHost:devInfo:
 
(void) - sendTcpRequest:success:failure:
 
(void) - sendTcpWithRequest:success:failure:
 
(void) - removeInactiveDevice:
 
(void) - removeAllInactiveDevice
 
(BOOL) - hasTcpClientWithDevId:
 
(void) - closeTcpClientWithDevId:
 
(void) - closeAllTcpClient
 
(void) - initUdpServerWithPort:
 
(void) - sendUdpRequestWithHost:port:type:body:success:failure:
 
(void) - sendUdpRequestWithHost:port:type:body:lpv:success:failure:
 
(void) - closeUdpServerWithPort:
 
(void) - addDelegate:
 
(void) - removeDelegate:
 
(void) - configKeys:broadcastKey:sendKey:
 
(void) - initTcpClientWithHost:devInfo:
 
(void) - sendTcpRequest:success:failure:
 
(void) - sendTcpWithRequest:success:failure:
 
(void) - removeInactiveDevice:
 
(void) - removeAllInactiveDevice
 
(BOOL) - hasTcpClientWithDevId:
 
(void) - closeTcpClientWithDevId:
 
(void) - closeAllTcpClient
 
(void) - initUdpServerWithPort:
 
(void) - sendUdpRequestWithHost:port:type:body:success:failure:
 
(void) - sendUdpRequestWithHost:port:type:body:lpv:success:failure:
 
(void) - closeUdpServerWithPort:
 
(void) - addDelegate:
 
(void) - removeDelegate:
 

Class Methods

(instancetype) + sharedInstance
 
(instancetype) + sharedInstance
 

Properties

ThingSDKSafeMutableDictionaryinactiveDevices
 
ThingSDKSafeMutableDictionaryHKDFDic
 

Detailed Description

Definition at line 89 of file ThingSmartSocketChannel.h.

Method Documentation

◆ addDelegate: [1/2]

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

◆ addDelegate: [2/2]

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

◆ closeAllTcpClient [1/2]

- (void) closeAllTcpClient

◆ closeAllTcpClient [2/2]

- (void) closeAllTcpClient

◆ closeTcpClientWithDevId: [1/2]

- (void) closeTcpClientWithDevId: (NSString *)  devId

◆ closeTcpClientWithDevId: [2/2]

- (void) closeTcpClientWithDevId: (NSString *)  devId

◆ closeUdpServerWithPort: [1/2]

- (void) closeUdpServerWithPort: (uint16_t)  port

◆ closeUdpServerWithPort: [2/2]

- (void) closeUdpServerWithPort: (uint16_t)  port

◆ configKeys:broadcastKey:sendKey: [1/2]

- (void) configKeys: (NSData *)  zigbeeKey
broadcastKey: (NSData *)  broadcastKey
sendKey: (NSData *)  sendKey 

◆ configKeys:broadcastKey:sendKey: [2/2]

- (void) configKeys: (NSData *)  zigbeeKey
broadcastKey: (NSData *)  broadcastKey
sendKey: (NSData *)  sendKey 

◆ hasTcpClientWithDevId: [1/2]

- (BOOL) hasTcpClientWithDevId: (NSString *)  devId

◆ hasTcpClientWithDevId: [2/2]

- (BOOL) hasTcpClientWithDevId: (NSString *)  devId

◆ initTcpClientWithHost:devInfo: [1/2]

- (void) initTcpClientWithHost: (NSString *)  host
devInfo: (NSDictionary *)  devInfo 

◆ initTcpClientWithHost:devInfo: [2/2]

- (void) initTcpClientWithHost: (NSString *)  host
devInfo: (NSDictionary *)  devInfo 

◆ initUdpServerWithPort: [1/2]

- (void) initUdpServerWithPort: (NSInteger)  port

◆ initUdpServerWithPort: [2/2]

- (void) initUdpServerWithPort: (NSInteger)  port

◆ removeAllInactiveDevice [1/2]

- (void) removeAllInactiveDevice

◆ removeAllInactiveDevice [2/2]

- (void) removeAllInactiveDevice

◆ removeDelegate: [1/2]

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

◆ removeDelegate: [2/2]

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

◆ removeInactiveDevice: [1/2]

- (void) removeInactiveDevice: (NSString *)  gwId

◆ removeInactiveDevice: [2/2]

- (void) removeInactiveDevice: (NSString *)  gwId

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

- (void) sendTcpRequest: (ThingSmartSocketWriteModel *)  request
success: (ThingSuccessDict success
failure: ("This method is)  deprecated
(Use sendTcpWithRequest:success:failure:instead")  __deprecated_msg 

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

- (void) sendTcpRequest: (ThingSmartSocketWriteModel *)  request
success: (ThingSuccessDict success
failure: ("This method is)  deprecated
(Use sendTcpWithRequest:success:failure:instead")  __deprecated_msg 

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

- (void) sendTcpWithRequest: (ThingSmartSocketWriteModel *)  request
success: (ThingSuccessDict success
failure: (ThingFailureError failure 

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

- (void) sendTcpWithRequest: (ThingSmartSocketWriteModel *)  request
success: (ThingSuccessDict success
failure: (ThingFailureError failure 

◆ sendUdpRequestWithHost:port:type:body:lpv:success:failure: [1/2]

- (void) sendUdpRequestWithHost: (NSString *)  host
port: (NSInteger)  port
type: (int)  type
body: (NSDictionary *)  body
lpv: (NSString *)  lpv
success: (ThingSuccessHandler success
failure: (ThingFailureHandler failure 

◆ sendUdpRequestWithHost:port:type:body:lpv:success:failure: [2/2]

- (void) sendUdpRequestWithHost: (NSString *)  host
port: (NSInteger)  port
type: (int)  type
body: (NSDictionary *)  body
lpv: (NSString *)  lpv
success: (ThingSuccessHandler success
failure: (ThingFailureHandler failure 

◆ sendUdpRequestWithHost:port:type:body:success:failure: [1/2]

- (void) sendUdpRequestWithHost: (NSString *)  host
port: (NSInteger)  port
type: (int)  type
body: (NSDictionary *)  body
success: (ThingSuccessHandler success
failure: (ThingFailureHandler failure 

◆ sendUdpRequestWithHost:port:type:body:success:failure: [2/2]

- (void) sendUdpRequestWithHost: (NSString *)  host
port: (NSInteger)  port
type: (int)  type
body: (NSDictionary *)  body
success: (ThingSuccessHandler success
failure: (ThingFailureHandler failure 

◆ sharedInstance [1/2]

+ (instancetype) sharedInstance

◆ sharedInstance [2/2]

+ (instancetype) sharedInstance

Property Documentation

◆ HKDFDic

- (ThingSDKSafeMutableDictionary *) HKDFDic
readwritenonatomicstrong

Definition at line 98 of file ThingSmartSocketChannel.h.

◆ inactiveDevices

- (ThingSDKSafeMutableDictionary *) inactiveDevices
readwritenonatomicstrong

A list of inactive devices.

Definition at line 96 of file ThingSmartSocketChannel.h.


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