Concept Flow - WiFi with ESP8266/ESP32
Start
Include WiFi library
Set WiFi SSID and Password
Begin WiFi connection
Check connection status
Connected
Use WiFi connection
End
This flow shows how the ESP connects to WiFi: include library, set credentials, start connection, check status, retry if needed, then use connection.