Last Updated on : 2025-04-08 01:57:53download
The device generates an access point (AP), and the app scans the QR code on the device body. After obtaining the device UUID, the app guides users in connecting to the device AP and sends activation information to the device.
In the pairing-free mode, the device is not connected to the internet, but the app and the device are in the same local area network.
Set the pairing mode to wireless.
connect_mode = PARING_MODE_WIFI_AP
Set the connection mode to wireless.
TUYA_IPC_LINK_TYPE_E link_type = TUYA_IPC_LINK_WIFI;
ipc_sdk_run_var.net_info.link_type = link_type;
Set the device to pairing-free mode.
tuya_set_lan_mode(1);
Adapt tkl_wifi.c
.
The development framework provides a set of APIs for Linux. You need to adapt the implementation to your specific hardware.
SmartLife_xxxx
where SmartLife
is hard-coded and xxxx
represents the last four digits of the device UUID.Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback