import network
import time
from machine import Pin
led = Pin(23, Pin.OUT)
print("Conectandose a la red WIF", end="")
red = network.WLAN(network.STA_IF)
red.active(True)
red.connect('Wokwi-GUEST','')
while not red.isconnected():
print(".", end="")
time.sleep(0.1)
print("Conectado!")
if red.isconnected():
led.value(1)
print(red.isconnected)
else:
led,value(0)
Loading
esp32-devkit-c-v4
esp32-devkit-c-v4