HI,
I am trying to connect to jeedom with its API.
The working URL is :
https://mcj2.dns2.jeedom.com/core/a...hhhhhhhHn8AVXAKTVh8YVgMsyPGVCL&Type=cmd&id=87
I have successfully connected to the site and it works with an ESP8266 with a simple GET
here is the C Arduino code
I wanted to do the same using httpjob
The code being :
This code works but return a failure from the server :
{"jsonrpc":"2.0","id":null,"error":{"code":1,"message":"Requ\u00eate invalide. Version Jsonrpc invalide : "}}
Do you see why it doesn't work ?
Thank
I am trying to connect to jeedom with its API.
The working URL is :
https://mcj2.dns2.jeedom.com/core/a...hhhhhhhHn8AVXAKTVh8YVgMsyPGVCL&Type=cmd&id=87
I have successfully connected to the site and it works with an ESP8266 with a simple GET
here is the C Arduino code
B4X:
// We now create a URI for the request
String url = "/core/api/jeeApi.php?apikey=";
url += eAPIkey;
url += "&type=cmd&id=";
url += ecmdID;
// This will send the request to the server
jeedomClient.print(String("GET ") + url + " HTTP/1.1\r\n" +
"Host: " + ejeedomIP + "\r\n" +
"Connection: close\r\n\r\n");
I wanted to do the same using httpjob
The code being :
B4X:
Dim httpMess As String = "https://mcj2.dns2.jeedom.com/core/api/jeeApi.php?apikey=aXW6xMkWIWxschhhhhhhhhhhn8AVXAKTVh8YVgMsyPGVCL&Type=cmd&id=87"
job2.Download(httpMess)
This code works but return a failure from the server :
{"jsonrpc":"2.0","id":null,"error":{"code":1,"message":"Requ\u00eate invalide. Version Jsonrpc invalide : "}}
Do you see why it doesn't work ?
Thank