Last Updated on : 2023-06-01 06:19:42download
Tuya Smart Life App SDK empowers smart devices to be paired through routers or gateways. The typical pairing mode is Wi-Fi Easy Connect (EZ). In this mode, the SDK gets the pairing token from the cloud and enables the app to broadcast the pairing information. The router ID, password, and pairing token are published. Then, the smart device receives the pairing information and starts the activation process. The activated device is connected to both the app and the cloud. Now, you have kicked off your journey with smart control in the cloud.
Before you get started on the development of device pairing, you must get to know the basic logic of the Smart Life App SDK. Basic operations such as login and home creation are finished based on the SDK.
Device pairing supports the following features:
Wi-Fi device pairing
Smart camera pairing in QR code mode
Wired device pairing
Sub-device pairing
Device paring in QR code mode
Pegasus pairing
NB-IoT device pairing
Bluetooth device pairing
For more information about Bluetooth device pairing, see Bluetooth Devices.
The following table lists specific terms and definitions that are used in this topic. For more information, see Glossary.
Term | Definition |
---|---|
Wi-Fi device | A smart device that uses a Tuya Wi-Fi module to connect to a router and interact with apps and the cloud. |
Wi-Fi EZ mode | Also known as the EZ mode. This pairing mode is implemented through the following steps:
|
AP mode | Also known as the hotspot mode. A mobile phone acts as a station (STA) and connects to the hotspot of a smart device. Then, both devices are paired to establish a socket connection between them and exchange data through the specified ports. |
Smart camera pairing in QR code mode | A smart camera scans the QR code on the app to get the pairing data. |
Wired device | A device that connects to a router through an Ethernet cable. For example, a wired device can be a Zigbee wired gateway or a wired camera. |
Sub-device | A device that interacts with apps and the cloud through a gateway. For example, a Zigbee sub-device is such a device. |
Zigbee | Zigbee is a short-range, simple, low-power, low-data-rate, cost-efficient, and two-way wireless communication technology. It applies to short-range, low-power, and low-rate data transfers between various electronic devices, periodic data transfers, intermittent data transfers, and data transfers at a long interval. |
Zigbee gateway | The device that integrates the coordinator with Wi-Fi features on a Zigbee network. The gateway is responsible to formulate the Zigbee network and store data. |
Zigbee sub-device | A router or a terminal on a Zigbee network. Each Zigbee sub-device is responsible to forward data, or respond to terminal control commands. |
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback