Hi
I am unsure if this is the correct place to post this and if it isn't I am sorry, I am trying to do a HTTP Get using the JSON api to turn a device on or off. At this moment I am not concerned about the returning HTML.
If I copy this into my localhost url browser
It Works great,
However using an Arduino like this I have an issue
I get nothing, using Wireshark to watch the network I can see the source ip and the destination http request ip are both correct.
The request looks correct to me and I have compared to the SDK documentation. Is their a security setting in homeseer that stops non localhost traffic? I doubt it but I am scratching my head a little
many thanks
I am unsure if this is the correct place to post this and if it isn't I am sorry, I am trying to do a HTTP Get using the JSON api to turn a device on or off. At this moment I am not concerned about the returning HTML.
If I copy this into my localhost url browser
Code:
[URL]http://192.168.0.60:8080/JSON?request=controldevicebylabel&ref=347&label=off[/URL]
However using an Arduino like this I have an issue
Code:
int ret = client.connect(server, 8080) ; if (ret==1) { client.println("GET /JSON?request=controldevicebylabel&ref=347&label=off"); client.println("Host: homeseer"); client.println("Connection: close"); client.println(); }
The request looks correct to me and I have compared to the SDK documentation. Is their a security setting in homeseer that stops non localhost traffic? I doubt it but I am scratching my head a little
many thanks
Comment