|
| 1 | +# Tuya IoT Quick Start |
| 2 | + |
| 3 | +Tuya Cloud Application is an application provided by the Tuya IoT platform. With Tuya Cloud Application, developers can quickly implement remote device control, device management, and other functions. |
| 4 | + |
| 5 | +The `quickStart` demonstrates a simple, cross-platform, cross-system switch example that supports multiple connections. Through the Tuya APP and Tuya Cloud Service, you can remotely control this LED. |
| 6 | + |
| 7 | +## Product Creation |
| 8 | + |
| 9 | +Refer to the [Product Creation Documentation](https://developer.tuya.com/en/docs/iot-device-dev/application-creation?id=Kbxw7ket3aujc) to create a product on the [Tuya IoT](https://iot.tuya.com) platform and obtain the PID of the created product. |
| 10 | + |
| 11 | +Then replace the PID in `quickStart` with the PID you obtained. |
| 12 | + |
| 13 | +```c |
| 14 | +void setup() { |
| 15 | + ... |
| 16 | + TuyaIoT.begin("YOUR PID", PROJECT_VERSION); |
| 17 | +} |
| 18 | +``` |
| 19 | + |
| 20 | +## Confirm TuyaOpen License Code |
| 21 | + |
| 22 | +Products developed through this project need to use the TuyaOpen-specific license code. Using other license codes will not connect to the Tuya Cloud properly. |
| 23 | + |
| 24 | +Modify the license code in the code as follows: |
| 25 | + |
| 26 | +```c |
| 27 | +// Tuya license |
| 28 | +#define TUYA_DEVICE_UUID "uuidxxxxxxxxxxxxxxxx" |
| 29 | +#define TUYA_DEVICE_AUTHKEY "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 30 | +``` |
| 31 | +
|
| 32 | +If you do not have a TuyaOpen license code, you can obtain it through the following methods: |
| 33 | +
|
| 34 | ++ Purchase a module with the TuyaOpen license code pre-burned. This license code is burned into the corresponding module at the factory and will not be lost. TuyaOpen reads the license code through the `TuyaIoT.readBoardLicense(&license);` interface at startup. Please confirm whether the current device has the TuyaOpen license code burned. |
| 35 | +
|
| 36 | ++ If the current module does not have the TuyaOpen license code burned, you can purchase the TuyaOpen license code through the [TuyaIoT platform](https://platform.tuya.com/purchase/index?type=6). |
| 37 | +
|
| 38 | ++ Obtain a free TuyaOpen license code through the following activities: |
| 39 | +
|
| 40 | + To allow developers to freely experience the TuyaOpen Framework, you can now get a free TuyaOpen Framework-specific license code by starring the TuyaOpen Framework repository on GitHub, including: |
| 41 | +
|
| 42 | + + [tuyaopen](https://github.com/tuya/tuyaopen) |
| 43 | + + [arduino-tuyaopen](https://github.com/tuya/arduino-tuyaopen) |
| 44 | + + [luanode-tuyaopen](https://github.com/tuya/luanode-tuyaopen) |
| 45 | +
|
| 46 | + With your GitHub account and screenshot, send an email to `[email protected]` or join the QQ group `796221529` and contact the group owner to receive a free TuyaOpen Framework-specific license code. Limited to 500 codes, first come first served, while supplies last. Scan the QR code below to join the group and claim your code👇: |
| 47 | +
|
| 48 | +  |
0 commit comments