Hi,
Because of Garmin not supporting http-Requests anymore, I had to change to https.
I changed my webservice an installed a SSL certificate on my Win10 PC.
In the simulator I get now a INVALID_HTTP_BODY_IN_NETWORK_RESPONSE -400.
Why this?
You can check the webservice at https://fsmarin.mooo.com/SmappeeLocalWebApi/api/ActualPower?Smappee=http://fsmarin.mooo.com:20000
returning a JSON.
[{"ConsumedPower":509,"SolarPower":1359,"Timestamp":"2019-09-22T14:32:47.8677179+02:00"}]
Comm.makeWebRequest(
httpAddress,
{
},
{
"Content-Type" => Comm.REQUEST_CONTENT_TYPE_JSON
},
method(:onReceive)
);
Do I have to set some parameters in the Webcall? (before with http, I did not set the Content-Type and it worked perfectly over month!)
Any help very appreciated
Marcel