The user might change the Wi-Fi network credentials (SSID and password) regularly for security purposes. Without the alternative Wi-Fi network feature, the user has to pair all smart devices again. The alternative Wi-Fi network feature allows the user to preset multiple sets of Wi-Fi network credentials. When the current Wi-Fi network is unavailable, the device will attempt to connect using one of the preset credentials.
Feature description
Add alternative Wi-Fi networks:
The user adds multiple sets of Wi-Fi network credentials on the mobile app. The added Wi-Fi network credentials will be sent to the device and stored on its flash memory.
Switch to an alternative Wi-Fi network:
The user proactively switches to an alternative Wi-Fi network.
The user selects an alternative Wi-Fi network on the mobile app. The mobile app sends the credentials of the selected Wi-Fi network to the device. The device connects to the target Wi-Fi network after receiving the credentials.
The device proactively switches to an alternative Wi-Fi network.
When the current Wi-Fi network is unavailable, the device scans for alternative Wi-Fi networks and connects to an available one.
How it works
Development guide
Runtime environment
Open tuya_iot_config.h and check if the following macro is defined.
#define ENABLE_WIFI_PROTECT 1
How to
The alternative Wi-Fi network feature is already integrated into the development framework, eliminating the need for custom development.
FAQs
How many alternative Wi-Fi networks can be added?
Up to three alternative Wi-Fi networks can be added.
Will the device reconnect to the previous network if it fails to switch to an alternative one?
In this case, the device will reconnect to the previous network.