Tuya iOS Smart Life App SDK 5.15.0
ThingNVR Class Reference

#import <ThingNVR.h>

Inheritance diagram for ThingNVR:

Instance Methods

(instancetype) - NS_UNAVAILABLE
 
(instancetype) - initWithNvrId:
 
(int) - connectWithToken:skills:traceId:
 
(void) - disconnect
 
(int) - sendAuthorizationWithUsername:pwd:onResponse:
 
(int) - bindSubDevicesInfoWithJsonInfo:onResponse:
 
(instancetype) - NS_UNAVAILABLE
 
(instancetype) - initWithNvrId:
 
(int) - connectWithToken:skills:traceId:
 
(void) - disconnect
 
(int) - sendAuthorizationWithUsername:pwd:onResponse:
 
(int) - bindSubDevicesInfoWithJsonInfo:onResponse:
 

Properties

NSString * nvr_device_id_
 
int session_
 
id< ThingNVRDelegatedelegate_
 

Detailed Description

Definition at line 13 of file ThingNVR.h.

Method Documentation

◆ bindSubDevicesInfoWithJsonInfo:onResponse: [1/2]

- (int) bindSubDevicesInfoWithJsonInfo: (NSString *)  jsonInfo
onResponse: (void(^)(const char *result, int errCode))  onResponse 

Description bind subdevices to station

Parameters
jsonInfojsonInfo.
Returns
error code

◆ bindSubDevicesInfoWithJsonInfo:onResponse: [2/2]

- (int) bindSubDevicesInfoWithJsonInfo: (NSString *)  jsonInfo
onResponse: (void(^)(const char *result, int errCode))  onResponse 

Description bind subdevices to station

Parameters
jsonInfojsonInfo.
Returns
error code

◆ connectWithToken:skills:traceId: [1/2]

- (int) connectWithToken: (NSString *)  token
skills: (NSString *)  skills
traceId: (NSString *)  traceId 

Description P2P 3.0 connect(Normal mode, exchange signal through MQTT 302)

Parameters
tokenthing p2p token.
skillsthing p2p skills for pre connect. supported while p2p version >= 0xF4030400
traceIdp2p fulllink log traceId.
Returns
retcode >= 0: session id, retcode < 0: error code

◆ connectWithToken:skills:traceId: [2/2]

- (int) connectWithToken: (NSString *)  token
skills: (NSString *)  skills
traceId: (NSString *)  traceId 

Description P2P 3.0 connect(Normal mode, exchange signal through MQTT 302)

Parameters
tokenthing p2p token.
skillsthing p2p skills for pre connect. supported while p2p version >= 0xF4030400
traceIdp2p fulllink log traceId.
Returns
retcode >= 0: session id, retcode < 0: error code

◆ disconnect [1/2]

- (void) disconnect

Descriotion P2P 3.0 disconnect

◆ disconnect [2/2]

- (void) disconnect

Descriotion P2P 3.0 disconnect

◆ initWithNvrId: [1/2]

- (instancetype) initWithNvrId: (NSString *)  NS_DESIGNATED_INITIALIZER

Description NVR initializer.

Parameters
nvrDidnvrdid
Returns
ThingNVR object.

◆ initWithNvrId: [2/2]

- (instancetype) initWithNvrId: (NSString *)  NS_DESIGNATED_INITIALIZER

Description NVR initializer.

Parameters
nvrDidnvrdid
Returns
ThingNVR object.

◆ NS_UNAVAILABLE [1/2]

- (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE [2/2]

- (instancetype) NS_UNAVAILABLE

◆ sendAuthorizationWithUsername:pwd:onResponse: [1/2]

- (int) sendAuthorizationWithUsername: (NSString *)  userName
pwd: (NSString *)  password
onResponse: (void(^)(const char *result, int errCode))  onResponse 

Descriotion Nvr device authorization

Parameters
userNameuserName.
passwordpassword
callbackresult callback
Returns
error code

◆ sendAuthorizationWithUsername:pwd:onResponse: [2/2]

- (int) sendAuthorizationWithUsername: (NSString *)  userName
pwd: (NSString *)  password
onResponse: (void(^)(const char *result, int errCode))  onResponse 

Descriotion Nvr device authorization

Parameters
userNameuserName.
passwordpassword
callbackresult callback
Returns
error code

Property Documentation

◆ delegate_

- (id< ThingNVRDelegate >) delegate_
readwritenonatomicweak

Definition at line 17 of file ThingNVR.h.

◆ nvr_device_id_

- (NSString *) nvr_device_id_
readwritenonatomicstrong

Definition at line 15 of file ThingNVR.h.

◆ session_

- (int) session_
readwritenonatomicassign

Definition at line 16 of file ThingNVR.h.


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