In order to show how to use OpenThread and CoAP, add an application. This example could be build to run a client or server. The server could expose LEDs and buttons and client could get their state and set the LEDs state. The network is created automatically using the network key predefined in the config. The goal is to make the example simple by removing the commisionning and joinning process. If a client application has a button, it could use it to toggle the first LED on any boards running the server application. Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
24 lines
446 B
Plaintext
24 lines
446 B
Plaintext
# Config options for OpenThread Border CoAP sample app
|
|
|
|
# Copyright (c) 2024 Alexandre Bailon
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
mainmenu "OpenThread CoAP Sample"
|
|
|
|
menu "Application configuration"
|
|
|
|
config OT_COAP_SAMPLE_SERVER
|
|
bool "Build the sample CoAP server application"
|
|
|
|
config OT_COAP_SAMPLE_LED
|
|
bool "Enable LED support"
|
|
default y
|
|
|
|
config OT_COAP_SAMPLE_SW
|
|
bool "Enable switch support"
|
|
default y
|
|
|
|
endmenu
|
|
|
|
source "Kconfig.zephyr"
|