#import <ThingSmartExtModuleManager.h>
◆ activateExtendedModule:automatic:success:failure: [1/2]
Activate the extended module. If it is WiFi, it will return an error because the SSID and password are not entered
- Parameters
-
| devId | device id |
| automatic | YES Automatic NO manual. If NO, need to wait for the MQTT response result |
| success | If successfully activated, this block is called. |
| failure | If activation fails, this block calls back an error |
◆ activateExtendedModule:automatic:success:failure: [2/2]
Activate the extended module. If it is WiFi, it will return an error because the SSID and password are not entered
- Parameters
-
| devId | device id |
| automatic | YES Automatic NO manual. If NO, need to wait for the MQTT response result |
| success | If successfully activated, this block is called. |
| failure | If activation fails, this block calls back an error |
◆ activateExtendedModule:params:success:failure: [1/2]
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
-
| devId | device id |
| params | see ThingBleExtModuleActiveKey ThingBleExtModuleActiveDictionary |
| success | If successfully activated, this block is called. |
| failure | If activation fails, this block calls back an error |
◆ activateExtendedModule:params:success:failure: [2/2]
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
-
| devId | device id |
| params | see ThingBleExtModuleActiveKey ThingBleExtModuleActiveDictionary |
| success | If successfully activated, this block is called. |
| failure | If 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
-
| devId | device id |
| automatic | YES Automatic NO manual. If NO, need to wait for the MQTT response result |
| ssid | WiFi SSID |
| pwd | WiFi password |
| success | If successfully activated, this block is called. |
| failure | If 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
-
| devId | device id |
| automatic | YES Automatic NO manual. If NO, need to wait for the MQTT response result |
| ssid | WiFi SSID |
| pwd | WiFi password |
| success | If successfully activated, this block is called. |
| failure | If activation fails, this block calls back an error |
◆ activeExtenModuleByBLEActived:success:failure: [1/2]
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
-
| devId | device id |
| success | If successfully activated, this block is called. |
| failure | If it cannot be activated, call back an error message. |
◆ activeExtenModuleByBLEActived:success:failure: [2/2]
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
-
| devId | device id |
| success | If successfully activated, this block is called. |
| failure | If 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
-
◆ 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
-
◆ registerExtModuleStatusListeningDelegate: [1/2]
◆ registerExtModuleStatusListeningDelegate: [2/2]
◆ saveExtendedModuleInfoData:forDevice: [1/2]
| - (void) saveExtendedModuleInfoData: |
|
(NSData *) |
data |
| forDevice: |
|
(NSString *) |
devId |
|
|
| |
Save the module information data actively reported by the Bluetooth 0x50 command
- Parameters
-
| data | module info data |
| devId | device 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
-
| data | module info data |
| devId | device id |
◆ unregisterExtModuleStatusListeningDelegate: [1/2]
If you do not need to get the plug-in status of the extension module, call this method
- Parameters
-
◆ unregisterExtModuleStatusListeningDelegate: [2/2]
If you do not need to get the plug-in status of the extension module, call this method
- Parameters
-
The documentation for this class was generated from the following files:
- /Users/humtong/Downloads/Pods_副本/ThingSmartBLEKit/Build/ThingSmartBLEKit.xcframework/ios-arm64_x86_64-simulator/ThingSmartBLEKit.framework/Headers/ThingSmartExtModuleManager.h
- /Users/humtong/Downloads/Pods_副本/ThingSmartBLEKit/Build/ThingSmartBLEKit.xcframework/ios-arm64/ThingSmartBLEKit.framework/Headers/ThingSmartExtModuleManager.h