ttlock / ttlock_flutter

MIT License
21 stars 23 forks source link

Unable to fetch Operation Log #43

Open IASudip opened 4 weeks ago

IASudip commented 4 weeks ago

Hello Team, We are unable fetch latest recored for using both API and TTLock.getOperaitonLog command In case of API:

In case of TTLock.getOperaitonLog command

IASudip commented 1 week ago

Updated Case: TTLock.getOperaitonLog command

with TTOperateRecordType.latest: It provide empty list TTLock.getLockOperateRecord(TTOperateRecordType.latest, lockData, (operateRecord) { List<dynamic> fetchOperationList = jsonDecode(operateRecord); fetchOperationList.sort((a, b) => b["operateDate"] - a["operateDate"]); operationList.value = fetchOperationList; }, (errorCode, errorMsg) { if (errorCode == TTLockError.bluetoothConnectTimeount) { Utils.showToast("Record: time out"); } else { Utils.showToast("$errorCode"); } });