Wi‑Fi - Network Connection (STA) (wifi_conect)¶
What it does: Connects the ESP32 as a client (STA) to an existing Wi‑Fi network by SSID and password.

Inputs¶
ssid: Wi‑Fi network name (text).pass: Wi-Fi network password (text).
Output¶
- None (statement block).
When to use it¶
- At the beginning of the program before HTTP, Blynk or other network communication.
- When reconnecting after a Wi‑Fi outage.
Tips and pitfalls¶
- The block waits in a cycle until it connects. If the password is wrong, the program may hang.
- If you want robust behavior, wrap connection with timeout or
try/except.
Generated Python example¶
do_connect_sta("MojeWiFi", "MojeHeslo")