Closed kevinramharak closed 1 year ago
Hi Kevin,
https://github.com/kozmoz/atag-one-api/blob/master/src/main/java/org/juurlink/atagone/AtagOneLocalConnector.java https://github.com/kozmoz/atag-one-api/blob/master/src/main/java/org/juurlink/atagone/AtagOneLocalConnector.java See the method requestAuthorizationFromThermostat(). But it looks already similar.
Sometimes you get an empty response. In my code I just try it a couple of times in that case. Are you sure you send the right request headers for content type (application/json )and content length?
Good luck, Rob
On 21 Apr 2018, at 18:05, Kevin Ramharak notifications@github.com wrote:
So i am trying to authenticate with the protocol described in the wiki and i am sending this:
{ "pair_message": { "seqnr": 1, "account_auth": { "user_account": "", "mac_address": "my_mac" }, "accounts": { "entries": [ { "user_account": "", "mac_address": "my_mac", "device_name": "dev_name", "account_type": 0 } ] } } } but:
using Postman gets me no HTTP response . I can see some tcp traffic from the atag coming back, but that seems to be the tcp/ip layer using Curl i get the following response: { "
":{ "seqnr":0,"acc_status":0} } any tips or help? Id wanted to try here before reverse engineering the android app. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kozmoz/atag-one-api/issues/29, or mute the thread https://github.com/notifications/unsubscribe-auth/AA2qtCf1VBmtfOVxIchnXv41rq2Q8WKUks5tq1jSgaJpZM4Teg72.
So i am trying to authenticate with the protocol described in the wiki and i am sending this:
but:
any tips or help? Id wanted to try here before reverse engineering the android app.