Setup: https://library.loxone.com/detail/ttlock-1785/overview
- Add all locks and gateways into the app.
- Ensure that you can use your mobile app to remotely control your door lock.
- Register a developer account on the door lock supplier's website.(Sciener Open Platform)
- Once your developer account is approved, you will receive a "client_id" and "client_secret."
- Edit the Program code and set the client_id, client_secret, username and password parameters. Password must be md5 encrypted. (MD5 Hash Generator)
- Add this into the PicoC program in TTLock example file.
- Then you will obtain an access token and refresh token.
- Access token returned will expire in seconds of "expires_in"(Default validity of 90 days),request with expired access token will get 10004 error code.