I can't communicate with my weather station

claudio.masieri

I spent a lot of time (and money) because you decide to chenge the authentication to my device.

I haven't a way to understand why I can't use the refreshtoken as you declare in documentation. I need of a postman sample to reproduce before implementing in my source. Have you published in some site a working sample with postman to communicate with the device? I'm frustrated and very angry with your choises :(

3

Comments

1 comment

  • Comment author
    Leslie Community moderator

    Hello Claudio, 

    We had to perform this change to comply with the RFC requirements and remain compatible with some third-party services like Google Assistant

    The calls to perform to get your first pair of access/refresh_tokens and refresh them remain the same as the ones from the documentation and the previous process

    The difference is that now, both access and refresh_token values will change at each new call to the /token endpoint. The refresh_token value can't be anymore hardcoded "forever" as it was previously possible

    So concretely, you must store the latest generated refresh_token value and use it at the access_token expiration (every 3 hours). By doing this you will maintain connectivity

    Have a good day,

    Leslie - Community Manager

    -1

Please sign in to leave a comment.