espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.36k stars 7.21k forks source link

OpenThread - Example for simple end device (IDFGH-11167) #12335

Closed baylf2000 closed 10 months ago

baylf2000 commented 11 months ago

Is your feature request related to a problem?

There are no examples currently for thread end devices, like a light or switch.

Describe the solution you'd like.

It would be very helpful to have some simple examples that might be used for Thread lights, switches, sensors etc.

Describe alternatives you've considered.

No response

Additional context.

No response

chshu commented 11 months ago

Thread is a network layer protocol, just like Wi-Fi. An application is required to build Thread products (light, switch, ...).

Matter is currently the most popular application runs over Thread, please check the light example in esp-matter here: https://github.com/espressif/esp-matter/tree/main/examples/light

If you want to implement some other applicaitons, you can also use the TCP/UDP APIs directly, refer to the udp example: https://github.com/espressif/esp-thread-br/blob/main/components/esp_ot_cli_extension/src/esp_ot_udp_socket.c

chshu commented 10 months ago

@baylf2000 Please reopen if any follow up questions.