For a project i am trying to port the pylips api to esp32 arduino C. Currently i managed to get the ambilight working with http on port 1925, but now i want to pair the tv and the ESP32 for the encryption. Sadly i am stuck on a read timeout after posting the pair request via https.
I think that the might be within the Json data that i am sending, but i might be wrong.
I am opening a connection with:
httpSecure.begin(Wificlient, "tvIP", 1926, "/6/pair/request", true);
and send the json data with the help of arduinoJson als a stream:
{ "scope": [ "read", "write", "control" ], "device": { "device_name": "heliotrope", "device_os": "Android", "app_name": "Pylips", "type": "native", "app_id": "app.id", "id": "HWvAq8UdGxbGbsH7" } }
For a project i am trying to port the pylips api to esp32 arduino C. Currently i managed to get the ambilight working with http on port 1925, but now i want to pair the tv and the ESP32 for the encryption. Sadly i am stuck on a read timeout after posting the pair request via https.
I think that the might be within the Json data that i am sending, but i might be wrong. I am opening a connection with:
httpSecure.begin(Wificlient, "tvIP", 1926, "/6/pair/request", true);
and send the json data with the help of arduinoJson als a stream:
{ "scope": [ "read", "write", "control" ], "device": { "device_name": "heliotrope", "device_os": "Android", "app_name": "Pylips", "type": "native", "app_id": "app.id", "id": "HWvAq8UdGxbGbsH7" } }