Skip to main content

Proyectos con Wifi

ScanNetworks 

Podemos ir a Ejemplos y vamos a ejecutar el ScanNetworks que no requiere contraseñas de wifi

2025-01-04 20_11_51-.png

Al ejecutarlo nos sale en la ventana de monitor serie las wifis que encuentra

2025-01-04 20_13_59-ScanNetworks _ Arduino IDE 2.3.3.png

WifiClient

Si nos vamos a este ejemplo:

2025-01-04 20_31_01-.png

Tenemos que ir a las líneas 9 y 10 para poner nuestra wifi y contraseña:

#define STASSID "aquituwifi"
#define STAPSK "aqui tu contraseña"

Al ejecutarlo llama a esta dirección definida en las líneas 16 y 17

const char* host = "djxmmx.net";
const uint16_t port = 17;

Y sale la cita del día cada 5 minutos en el puerto serie


WiFi connected
IP address: 
192.168.1.48
connecting to djxmmx.net:17
sending data to server
receiving from remote server
"Thomas wants to get it in quickly, and...Now there's a steal by Bird!
 Underneath to DJ, lays it in!
 1 second left, what a play by Bird!"
	 - 1987 NBA Eastern Conference Finals

closing connection
connecting to djxmmx.net:17
sending data to server
receiving from remote server
"Oh oh oh oh oh ooh, why'd you have to go oh, away from all, me love, why you leave me, w-why you leave me?..."
	 - Sean Kingston (Me Love)

closing connection
connecting to djxmmx.net:17
sending data to server
receiving from remote server
"I wanna run away, with you, cuz baby you're my everything..."
	 - Frankie J. (Run Away)

closing connection