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
13 stars 12 forks source link

Get all logs from TTLock SDK. #29

Closed davemccollough-geokey closed 8 months ago

davemccollough-geokey commented 8 months ago
TTLock.getOperationLog(with: .all, lockData: lockdata) { value in

                    } failure: { errorCode, errorMsg in

                    }

When I call the above method with .all, it returns too many records. I just want to confirm, does the method have a limit on the number of records it returns for a specified duration, such as 6 months or 1 year?

JuannyiOS commented 8 months ago

The records stored in the lock are not related to the duration of time. Locks have a maximum storage quantity, exceeding which will overwrite previous records. The maximum quantity may be 1000 or 1500 or other, depending on the lock.