- Arduino + Ethernet Shield
- Homeseer 2 + tenHsServer installed
and like to use the Arduino to control devices in Homeseer by sending HTTP requests from the arduino to Homeseer in a format like http://192.168.1.140/tenHsServer/tenHsS ... vice&d=v90
For some reason I cannot get this to work from the arduino, Homeseer does not understand the GET I am sending and does not reply.
Code: Select all
[i]Serial.print ("Connecting to Homeseer on "); // if you get a connection, report back via serial:
Serial.println (HSserver);
if (client.connect(HSserver, HSport)) {
Serial.print ("Succesfully connected to Homeseer on port ");
Serial.println (HSport);
// send the HTTP request:
client.println("GET /tenHsServer/tenHsServer.aspx?t=ab&f=toggleDevice&d=v90 HTTP/1.1");
client.println("Host: 192.168.1.140");
client.println("Connection: close");
client.println();[/i]
The above sketch is part of an example provided on the arduino website and originally points to http://www.google.com. When using it in it original format it works and returns content from the google website.
Has anybody done this before? If so can you point me in the right direction?
Can someone confirm this (using aspx) should work?
Your help is much appreciated!