suborb / philips_android_tv

Tools to control Philips 2016 Android TVs
GNU General Public License v2.0
121 stars 61 forks source link

Pairing read timeout for ESP32 #40

Open RensMvP opened 2 years ago

RensMvP commented 2 years ago

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" } }