ttlock / ttlock_flutter

MIT License
21 stars 23 forks source link

Issue in error message when lock is Hard Reset #15

Open SDS712 opened 3 years ago

SDS712 commented 3 years ago

Hello @ttlock @JLGB ,

We're facing an issue.

If the lock is Hard reset and if we try to do any operation on it, it fails everytime as expected but the sdk doesn't provide appropriate error message everytime

Here is the error that we get if lock keypad is inactive (which is not helpful)

TTLock listen: {errorCode: 33, errorMessage: lock connect time out, command: getLockSwitchState, resultState: 2, data: null}

And here is the error that we get if the lock keypad is active (which is helpful)

TTLock listen: {errorCode: 0, errorMessage: key invalid, may be reset, command: getLockSwitchState, resultState: 2, data: null}
ashmunir commented 1 year ago

@SDS712 Have you got any help regarding this? I am also facing lock connection timeout issue and didn't get any idea why its happening. On first attempt its giving this error while second attempt working fine.

Is there anything to do with Access points and connectivity issue.