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

touch to unlock #6

Closed ahmedalttai closed 8 months ago

ahmedalttai commented 3 years ago

Hello,

how to unable touch to unlock as same in TTlock app.

JuannyiOS commented 3 years ago

Hello,

such as, In method "startScan" TTScanBlock, when "isAllowTouchUnlock" == NO,do not to connect lock;if yes, to connect the lock."isAllowTouchUnlock" is the flag you set.

------------------ 原始邮件 ------------------ 发件人: "ttlock/iOS_SDK_Demo" @.>; 发送时间: 2021年6月13日(星期天) 晚上8:44 @.>; @.***>; 主题: [ttlock/iOS_SDK_Demo] touch to unlock (#6)

Hello,

how to unable touch to unlock as same in TTlock app.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ahmedalttai commented 3 years ago

Hello, such as, In method "startScan" TTScanBlock, when "isAllowTouchUnlock" == NO,do not to connect lock;if yes, to connect the lock."isAllowTouchUnlock" is the flag you set. ------------------ 原始邮件 ------------------ 发件人: "ttlock/iOS_SDK_Demo" @.>; 发送时间: 2021年6月13日(星期天) 晚上8:44 @.>; @.***>; 主题: [ttlock/iOS_SDK_Demo] touch to unlock (#6) Hello, how to unable touch to unlock as same in TTlock app. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

There is no "isAllowTouchUnlock" flag in TTScanBlock, it only contain this:

TTLock.startScan({ (scanModel:TTScanModel!) in scanModel.isAllowUnlock })

JuannyiOS commented 8 months ago

Sorry, this has been a long time, I don't know if you have solved it or not. isAllowTouchUnlock is not returned in the startScan method, it is a global setting. scanModel.isAllowUnlock == YES && isAllowTouchUnlock == YES ,then connect lock,unlock.