#PROGRMA PARA CONECTAR EL WIFI Y SOLICITAR A UNA API INTERNACONAL
import network
import urequests
import time
#Conectando a WIFI
print(" connectando a la red", end="")
sta_if =network.WLAN(network.STA_IF)
sta_if.active(True)
sta_if.connect('Wokwi-GUEST', '')
while not sta_if.isconnected():
print("*", end="")
time.sleep(0.50)
print("conectando exitosamennte !")
#Envio del requerimiento por HTTPS
print("Enviando requimieno por HTTPS ..." , end="")
response = urequests.get("https://reqres.in/api/users?page=2")
print(response.text)