Application Development
Create a product and obtain the product PID
Refer to the documentation https://developer.tuya.com/en/docs/iot-device-dev/application-creation?id=Kbxw7ket3aujc to create a product on https://iot.tuya.com and obtain the PID of the created product. Replace the TUYA_PRODUCT_KEY macro in the [apps/tuya_cloud/switch_demo/src/tuya_config.h](./src/tuya_config.h) file with the PID.
Build and Flash
Run the tos config_choice command to select the current development board in use.
If you need to modify the configuration, run the tos menuconfig command to make changes.
Run the tos build command to compile the project.
Use the tos flash command to flash the project in one click.
For more details about tos, please refer to tos Guide.
Network Configuration and Device Activation
Use the Tuya APP to configure the network via Bluetooth or Wi-Fi AP mode and activate the device.