TuyaAPI / link

📡 Effortlessly connect devices to WiFi and the cloud. Documentation: https://tuyaapi.github.io/link.
MIT License
15 stars 10 forks source link

why SSID and Wifi Password? #17

Open jampy opened 2 years ago

jampy commented 2 years ago

If I'm not wrong, this package links a Tuya-based device via a wifi network (not Bluetooth).

That implies that the device must somehow already be connected to the wireless AP.

So, why must the same wireless secrets be provided again while linking?

codetheweb commented 2 years ago

You are correct that it links via Wi-Fi. However, it does so very cleverly by encoding the data as the length of UDP broadcast packets. This means your phone or whatever’s giving the credentials needs to be linked to a network but the device does not.

On May 31, 2022, at 11:31, jampy @.***> wrote:

 If I'm not wrong, this package links a Tuya-based device via a wifi network (not Bluetooth).

That implies that the device must somehow already be connected to the wireless AP.

So, why must the same wireless secrets be provided again while linking?

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