tuya / tuya-connect-kit-for-mqtt-embedded-c

Provide core capabilities like device connection, uplink and downlink communication and OTA across platforms and operating systems.
MIT License
64 stars 55 forks source link

URL can not generate a static QR code #80

Open 1996xjm opened 3 years ago

1996xjm commented 3 years ago

this url can not generate a static QR code

https://smartapp.tuya.com/s/p?p={}&uuid={}&v=2.0
max190113 commented 3 years ago

First, confirm that your PID (productkey) and UUID are correct. You can learn the steps to get the above parameters from this tutorial.

Then you can learn how to fill the url from this statement which in "tuya-iot-link-sdk-embedded-c\examples\switch_demo_non_qrcode": TY_LOGI("https://smartapp.tuya.com/s/p?p=%s&uuid=%s&v=2.0", productkey, uuid);

Finally, you can use any QR code generator to convert the url into a QR code. Just a suggestion, you can use Chrome's built-in URL to QR code function to do this: image