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

TTGateway initialization fails #2

Closed S3basuchian closed 4 years ago

S3basuchian commented 4 years ago

Hello, When I call TTGateway initializeGatewayWithInfoDic after I have connected the Gateway nothing happens for like 2 minutes after which the block is called with TTGatewayStatus = TTGatewayDisconnect. There are no other error messages. Why is this happening?

S3basuchian commented 4 years ago

If anyone else is wondering: The iOS SDK needs the plaintext user password (in contrast to Android, which needs the md5 password). An error message that the password is wrong would be nice regardless

ttlock commented 4 years ago

hi,sorry for the trouble! the plaintext user password and MD5 password are all OK in the lastest iOS sdk.

S3basuchian commented 4 years ago

Thanks for the heads up. I'm using the latest version from Cocoapods, which I guess is not the very latest version then?

ttlock commented 4 years ago

yes,we can't get the verification code of cocoapods,so the latest versions haven't submitted to cocoapods.You can download the latest version through this website.

mehulparmar4ever commented 3 years ago

### Can someone please guide me? #Urgent #Please

I am also facing same error.

Here is the TTGateway.initializeGateway(withInfoDic: infoDic)

let infoDic = [ "SSID": self.txtWifiName.text!, "wifiPwd": self.txtWifiPassword.text!, "uid": uid , "userPwd": password, "gatewayName": self.txtWifiName.text! ] Screenshot 2020-10-08 at 11 17 23 AM

11 22