Saltar al contenido

ejemplo de código arduino wifi.h

Ejemplo: cliente wifi arduino

//This is assuming that you are connected to a network - router or other access point
#include <WiFi.h>

// Initialize the client library
WiFiClient client;

void setup() {
  	WiFi.begin(ssid, pass);	//Connect to access point
  	delay(4000);			//Allow time for connection to become established
  
	IPAddress server(192,168,2,1);  //The IPAddress of the server you're trying to connect to
	client.connect(server, 80)		//Connect to the server through the servers IP and port number
}
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)


Tags : /

Utiliza Nuestro Buscador

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *