Tuya iOS Smart Life App SDK 5.15.0
ThingSmartExtModuleManager Class Reference

#import <ThingSmartExtModuleManager.h>

Inheritance diagram for ThingSmartExtModuleManager:

Instance Methods

(void) - registerExtModuleStatusListeningDelegate:
 
(void) - unregisterExtModuleStatusListeningDelegate:
 
(void) - activeExtenModuleByBLEActived:success:failure:
 
(void) - activateExtendedModule:params:success:failure:
 
(void) - activateExtendedModule:automatic:success:failure:
 
(void) - activateExtendedWiFiModule:automatic:ssid:password:success:failure:
 
(NSInteger) - getExtModuleType:
 
(void) - saveExtendedModuleInfoData:forDevice:
 
(void) - registerExtModuleStatusListeningDelegate:
 
(void) - unregisterExtModuleStatusListeningDelegate:
 
(void) - activeExtenModuleByBLEActived:success:failure:
 
(void) - activateExtendedModule:params:success:failure:
 
(void) - activateExtendedModule:automatic:success:failure:
 
(void) - activateExtendedWiFiModule:automatic:ssid:password:success:failure:
 
(NSInteger) - getExtModuleType:
 
(void) - saveExtendedModuleInfoData:forDevice:
 

Detailed Description

Definition at line 35 of file ThingSmartExtModuleManager.h.

Method Documentation

◆ activateExtendedModule:automatic:success:failure: [1/2]

- (void) activateExtendedModule: (NSString *)  devId
automatic: (BOOL)  automatic
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Activate the extended module. If it is WiFi, it will return an error because the SSID and password are not entered

Parameters
devIddevice id
automaticYES Automatic NO manual. If NO, need to wait for the MQTT response result
successIf successfully activated, this block is called.
failureIf activation fails, this block calls back an error

◆ activateExtendedModule:automatic:success:failure: [2/2]

- (void) activateExtendedModule: (NSString *)  devId
automatic: (BOOL)  automatic
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Activate the extended module. If it is WiFi, it will return an error because the SSID and password are not entered

Parameters
devIddevice id
automaticYES Automatic NO manual. If NO, need to wait for the MQTT response result
successIf successfully activated, this block is called.
failureIf activation fails, this block calls back an error

◆ activateExtendedModule:params:success:failure: [1/2]

- (void) activateExtendedModule: (NSString *)  devId
params: (nullable ThingBleExtModuleActiveDictionary *)  params
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Activate the extended module via bluetooth. If the extended module is WiFi, activating the module requires entering SSID and password.

Warning
This method can be called to activate the extended module only after the bluetooth main module is activated.
Parameters
devIddevice id
paramssee ThingBleExtModuleActiveKey ThingBleExtModuleActiveDictionary
successIf successfully activated, this block is called.
failureIf activation fails, this block calls back an error

◆ activateExtendedModule:params:success:failure: [2/2]

- (void) activateExtendedModule: (NSString *)  devId
params: (nullable ThingBleExtModuleActiveDictionary *)  params
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Activate the extended module via bluetooth. If the extended module is WiFi, activating the module requires entering SSID and password.

Warning
This method can be called to activate the extended module only after the bluetooth main module is activated.
Parameters
devIddevice id
paramssee ThingBleExtModuleActiveKey ThingBleExtModuleActiveDictionary
successIf successfully activated, this block is called.
failureIf activation fails, this block calls back an error

◆ activateExtendedWiFiModule:automatic:ssid:password:success:failure: [1/2]

- (void) activateExtendedWiFiModule: (NSString *)  devId
automatic: (BOOL)  automatic
ssid: (NSString *)  ssid
password: (NSString *)  pwd
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Activate the extended WiFi module. SSID and password required.

Parameters
devIddevice id
automaticYES Automatic NO manual. If NO, need to wait for the MQTT response result
ssidWiFi SSID
pwdWiFi password
successIf successfully activated, this block is called.
failureIf activation fails, this block calls back an error

◆ activateExtendedWiFiModule:automatic:ssid:password:success:failure: [2/2]

- (void) activateExtendedWiFiModule: (NSString *)  devId
automatic: (BOOL)  automatic
ssid: (NSString *)  ssid
password: (NSString *)  pwd
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Activate the extended WiFi module. SSID and password required.

Parameters
devIddevice id
automaticYES Automatic NO manual. If NO, need to wait for the MQTT response result
ssidWiFi SSID
pwdWiFi password
successIf successfully activated, this block is called.
failureIf activation fails, this block calls back an error

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

- (void) activeExtenModuleByBLEActived: (NSString *)  devId
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Activating the extended module via bluetooth. If the extended module is WiFi, it will return an error because SSID and password need to be entered

See also
activeExtModuleByBLEActived:params:success:failure
Warning
This method can be called to activate the extended module only after the bluetooth main module is activated.
Parameters
devIddevice id
successIf successfully activated, this block is called.
failureIf it cannot be activated, call back an error message.

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

- (void) activeExtenModuleByBLEActived: (NSString *)  devId
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Activating the extended module via bluetooth. If the extended module is WiFi, it will return an error because SSID and password need to be entered

See also
activeExtModuleByBLEActived:params:success:failure
Warning
This method can be called to activate the extended module only after the bluetooth main module is activated.
Parameters
devIddevice id
successIf successfully activated, this block is called.
failureIf it cannot be activated, call back an error message.

◆ getExtModuleType: [1/2]

- (NSInteger) getExtModuleType: (NSString *)  devId

Get the extended module type -1:Module not found,0:Module not plugged in,1:NB,2:Wi-Fi,3:Cat.X, 04:Zigbee

Parameters
devIddevice id

◆ getExtModuleType: [2/2]

- (NSInteger) getExtModuleType: (NSString *)  devId

Get the extended module type -1:Module not found,0:Module not plugged in,1:NB,2:Wi-Fi,3:Cat.X, 04:Zigbee

Parameters
devIddevice id

◆ registerExtModuleStatusListeningDelegate: [1/2]

- (void) registerExtModuleStatusListeningDelegate: (id< ThingSmartExtModuleStatusListeningDelegate >)  delegate

Register an delegate to listen to the plug-in status of the extended module

See also
ThingSmartExtModuleStatusListeningDelegate
Parameters
delegatedelegate

◆ registerExtModuleStatusListeningDelegate: [2/2]

- (void) registerExtModuleStatusListeningDelegate: (id< ThingSmartExtModuleStatusListeningDelegate >)  delegate

Register an delegate to listen to the plug-in status of the extended module

See also
ThingSmartExtModuleStatusListeningDelegate
Parameters
delegatedelegate

◆ saveExtendedModuleInfoData:forDevice: [1/2]

- (void) saveExtendedModuleInfoData: (NSData *)  data
forDevice: (NSString *)  devId 

Save the module information data actively reported by the Bluetooth 0x50 command

Parameters
datamodule info data
devIddevice id

◆ saveExtendedModuleInfoData:forDevice: [2/2]

- (void) saveExtendedModuleInfoData: (NSData *)  data
forDevice: (NSString *)  devId 

Save the module information data actively reported by the Bluetooth 0x50 command

Parameters
datamodule info data
devIddevice id

◆ unregisterExtModuleStatusListeningDelegate: [1/2]

- (void) unregisterExtModuleStatusListeningDelegate: (id< ThingSmartExtModuleStatusListeningDelegate >)  delegate

If you do not need to get the plug-in status of the extension module, call this method

Parameters
delegatedelegate

◆ unregisterExtModuleStatusListeningDelegate: [2/2]

- (void) unregisterExtModuleStatusListeningDelegate: (id< ThingSmartExtModuleStatusListeningDelegate >)  delegate

If you do not need to get the plug-in status of the extension module, call this method

Parameters
delegatedelegate

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