Generic Demos
TuyaOpen provides a variety of example projects to help you quickly familiarize yourself with and master the usage of TuyaOpen, significantly reducing the learning curve.
$ examples
โโโ ble
โ โโโ ble_central
โ โโโ ble_peripher
โโโ get-started
โ โโโ sample_project
โโโ peripherals
โ โโโ adc
โ โโโ gpio
โ โโโ i2c
โ โโโ pwm
โ โโโ spi
โ โโโ timer
โ โโโ watchdog
โโโ protocols
โ โโโ http_client
โ โโโ https_client
โ โโโ mqtt
โ โโโ tcp_client
โ โโโ tcp_server
โโโ system
โ โโโ os_event
โ โโโ os_kv
โ โโโ os_mutex
โ โโโ os_queue
โ โโโ os_semaphore
โ โโโ os_sw_timer
โ โโโ os_thread
โโโ wifi
โโโ ap
โโโ low_power
โโโ scan
โโโ sta
Select a project to buildโ
Each chip model comes with corresponding example projects.
Navigate to the desired example by using the command cd ./example/xxx/xxx. Then, run the tos.py config choice command to set the compilation platform.
Build the exampleโ
- Run the
tos.py config choicecommand to select the desired development board or platform. - If you need to modify the configuration, run the
tos.py config menucommand first. - Run
tos.py buildto build the project.