Hi, Tesla modified the headers when doing POST calls to their servers by needing
"Content-Type" => Communications.REQUEST_CONTENT_TYPE_JSON
in it, but although that addition works successfully in the simulator, it returns BLE_HOST_TIMEOUT on my Venu watch and others' watch.
Anybody knows what I can do to fix this? I'm at lost here :-(
This is an example of the MakeWebRequest call I have
Communications.makeWebRequest(
url,
{
"on" => value
},
{
:method => Communications.HTTP_REQUEST_METHOD_POST,
:headers => {
"Authorization" => _token,
"User-Agent" => "Tesla-Link for Garmin",
"Content-Type" => Communications.REQUEST_CONTENT_TYPE_JSON
},
:responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_JSON
},
notify
);