Closed b0r1ngx closed 7 months ago
@b0r1ngx Timeout means device get wifi ssid and password but can not connect the internet
1.Please check if your Wi Fi account and password are correct 2.Confirm that your Wi Fi is 2.4G 3.You can use the Tuya Smart app for network configuration to confirm that Wi Fi is unobstructed
If there are any issues, please let us know
I will close this issue. If there are any issues, you can continue to provide feedback
From previous issue, where i said, that we successfully init Tuya SDK (at clear project created via Xcode), then we go further to Device Pairing.
Now we stack on Device Pairing, we tried EZ and AP modes, in both situations, we get timeout from Tuya SDK, but lamp is changing its behaviour, so for example for .AP mode, behaviour and code looks like this: 1) When lamp starts blinking 2) iPhone sits on router wifi (SSID: flat_463) 3) We runs getToken(), providing previously created homeId (with addHome function) 4) token is successfully gathered, and when it is gathered, we connect to access-point that created by lamp, then we do next: 4.1) sit to router wifi -> get timeout 4.2) sit to lamp wifi -> get timeout 4.3) sit to lamp wifi, wait 50 secs, then switch to router wifi (for get internet connection) -> get timeout
We use this code (where i mark ✅ - this code is running):
When we use Tuya SDK, and connect to wifi of lamp, lamp is stop blinking, when we not use Tuya SDK, lamp is blinking more than 3 minutes.
This behaviour, in my opinion, seems like something is happening (so some lamp is get some connection with Tuya SDK), but Tuya SDK just gives timeout always anyway :(
We tried it out by this docs: https://developer.tuya.com/en/docs/app-development/activator?id=Ka5cgmlzpfig4