After the code is deployed successfully on an Arduino® board connected to an ESP8266 chip, the connection between ESP8266 and Wi-Fi® network failed.
The Service set identifier (SSID) parameter and the WiFi encryption type parameter specified in the Configuration Parameters dialog box must match the Wi-Fi user name and the Wi-Fi encryption type of your router.
To see the router settings, perform these steps:
Open a browser and enter the router IP address in the address bar.
Enter the user name and password, and log in to your router. If you have not yet set up a user name and password, check the router's manual for the defaults.
On the home page, search for the Wi-Fi settings. Locate the SSID and the Wi-Fi encryption type on the page.
To see the SSID and the Wi-Fi encryption type set in the Configuration Parameters dialog box, browse to Simulation > Model Configuration Parameters > Hardware Implementation > Target Hardware Resources > WiFi properties.
Change the Service set identifier (SSID) parameter and the WiFi encryption type parameter in the Configuration Parameters dialog box to match the settings of the router, and deploy the code again.
If the WiFi encryption type is set to
WPA encryption, ensure that the correct password
is specified in the WPA password parameter.