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

Cannot get passage mode value #11

Closed ghost closed 8 months ago

ghost commented 2 years ago

I am using TTLock.getPassageModes(withLockData: lockData) to get passage mode value for my lock , it works in majority cases but in some locks there is error obtaining the same . Usually resulting in the error with code 99 , below is a snippet of error received .

invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution. "TTLock Error : TTError(rawValue: 99)" "TTLock Error Msg : Optional(\"Bluetooth has disconnected, please try again\")"

Please advice.

JuannyiOS commented 2 years ago

Hi , If the probability of error is low, i think it is normal. If only some locks fail frequently, it may be related to the lock hardware. Please send the account number and lock name to us for checking.

------------------ 原始邮件 ------------------ 发件人: "ttlock/iOS_SDK_Demo" @.>; 发送时间: 2022年6月13日(星期一) 晚上8:53 @.>; @.***>; 主题: [ttlock/iOS_SDK_Demo] Cannot get passage mode value (Issue #11)

I am using TTLock.getPassageModes(withLockData: lockData) to get passage mode value for my lock , it works in majority cases but in some locks there is error obtaining the same . Usually resulting in the error with code 99 , below is a snippet of error received .

"TTLock Error : TTError(rawValue: 99)" "TTLock Error Msg : Optional(\"Bluetooth has disconnected, please try again\")"

Please advice.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>