Hi, I searched in this forum about how-to connect Arduino and Android with Autoremote, and I found, but it not work for me, and it is very old. It's a very simple "GET".
Can anyone check the code? I'm using this one, from Arduino Tasker-Autoremote direct message:
char arserver[] = "autoremotejoaomgcd.appspot.com";
void SendMessage(){
client.stop();
if (client.connect(arserver, 80)){
Serial.println("connected");
client.print("GET /sendmessage?key=MYKEY&message=");
client.print("something");
client.println(" HTTP/1.1");
client.print("Host: ");
client.println(arserver);
client.println("User-Agent: Arduino");
client.println();
}
}
A lot of thanks for your time.