If an IPC has been connected to a WAN and generated a short URL, you can create a QR code with the short URL and place it on the device or display it on the screen. The user can scan the QR code with the mobile app to pair the device.
Process
Development guide
Prerequisites
You have a Tuya-enabled app, router, and device ready.
You have connected the device to the router over a wired or wireless connection.
The device is capable of converting a short URL into a QR code. Or the QR code has been attached to the device body during production.
Why hasn’t the callback for the short URL been triggered?
Check if the WAN works fine.
Check if all the required tkl_wifi.c and tkl_wired.c APIs are adapted.
Verify if tkl_wifi_init(WIFI_EVENT_CB cb) or tkl_wired_set_status_cb(TKL_WIRED_STATUS_CHANGE_CB cb) notifies the SDK of the current network status when the network changes.
Check with your project manager if the UUID has been flagged for direct cloud connectivity.
How can I set the pairing mode and connection mode?
Activation and binding with a QR code requires the device to connect to the internet. It is recommended to use the wired connection to set up the pairing mode and connection mode.