Go Down

Topic: Ayuda con webclient [SOLUCIONADO] (Read 268 times) previous topic - next topic


Jan 04, 2016, 07:25 pm Last Edit: Jan 18, 2016, 09:28 pm by kiravh
Buenas tardes estoy realizando un proyecto donde enviare un correo electronico con arduino y estoy basandome en el sketch de WebClient me gustaria saber si las siguientes lineas del programa estan bien

// Enter a MAC address for your controller below.
// Newer Ethernet shields have a MAC address printed on a sticker on the shield
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
// if you don't want to use DNS (and reduce your sketch size)
// use the numeric IP instead of the name for the server:
//IPAddress server(74,125,232,128);  // numeric IP for Google (no DNS)
char server[] =  "http://proyectoresidencia.comxa.com/alarma2.php?para=micorreo@gmail.com";//  name address for Google (using DNS)

// Set the static IP address to use if the DHCP fails to assign
IPAddress ip(31, 170, 160, 95); //esta ip es la de mi servidor online que cree.

// Initialize the Ethernet client library
// with the IP address and port of the server
// that you want to connect to (port 80 is default for HTTP):
EthernetClient client;


porfavor alguien que conteste

Go Up