ttlock / iOS_SDK_Demo

TTLock is a global provider of solutions for smart locks. We provide PCBA and softwares for lock manufactures and end users. We provide open API/SDK for developers. With these APIs/SDKs, you can develop your own applications to manage smart locks. The SDK here is for mobile app to communicate with locks via bluetooth.
MIT License
12 stars 12 forks source link

autoUnlock Issue: Config the passage mode of a lock #23

Closed pathanparvezkhan closed 7 months ago

pathanparvezkhan commented 8 months ago

We are using below API for the passage mode 'autoUnlock'.

https://euapi.ttlock.com/v3/lock/configPassageMode

We are passing 1 in autoUnlock parameter but It is not unlocking lock at given scheduled time.

ttlock commented 8 months ago

you need to call iOS sdk method "configPassageMode" first, then call "https://euapi.ttlock.com/v3/lock/configPassageMode".

pathanparvezkhan commented 8 months ago

you need to call iOS sdk method "configPassageMode" first, then call "https://euapi.ttlock.com/v3/lock/configPassageMode".

Tried this but not working. Is it possible to achieve directly through API from our backend? I don't want iOS sdk method call dependency.

pathanparvezkhan commented 8 months ago

you need to call iOS sdk method "configPassageMode" first, then call "https://euapi.ttlock.com/v3/lock/configPassageMode".

Tried this but not working. Is it possible to achieve directly through API from our backend? I don't want iOS sdk method call dependency.

Can you please reply?

ttlock commented 8 months ago

There is a parameter "type" in this interface "https://euapi.ttlock.com/v3/lock/configPassageMode" ,if this lock is a WiFi lock or has a gateway. If it's not an SDK bug issue, you can contact email "ttlock-developers-email-list@googlegroups.com".