Skip to content

Commit d553207

Browse files
Ayush1325jhedberg
authored andcommitted
samples: net: sockets: coap_client: Add 802154 Subg support
- Tested with BeagleConnect Freedom. - Also enable building in CI. Signed-off-by: Ayush Singh <[email protected]>
1 parent bfbc636 commit d553207

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_MAIN_STACK_SIZE=2048
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
CONFIG_BT=n
2+
3+
# Disable IPv4
4+
CONFIG_NET_IPV4=n
5+
6+
CONFIG_NET_CONFIG_NEED_IPV6=y
7+
CONFIG_NET_CONFIG_NEED_IPV4=n
8+
CONFIG_NET_CONFIG_MY_IPV4_ADDR=""
9+
CONFIG_NET_CONFIG_PEER_IPV4_ADDR=""
10+
11+
CONFIG_NET_L2_IEEE802154=y
12+
CONFIG_NET_L2_IEEE802154_SHELL=y
13+
CONFIG_NET_L2_IEEE802154_LOG_LEVEL_INF=y
14+
15+
# Uncomment for 868 MHz
16+
#CONFIG_NET_CONFIG_IEEE802154_CHANNEL=0
17+
# Uncomment for 906 MHz:
18+
CONFIG_NET_CONFIG_IEEE802154_CHANNEL=1

samples/net/sockets/coap_client/sample.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ tests:
1010
- net
1111
- socket
1212
platform_allow: qemu_x86
13+
sample.net.sockets.coap_client.802154.subg:
14+
extra_args: EXTRA_CONF_FILE="overlay-802154-subg.conf"
15+
platform_allow: beagleconnect_freedom

0 commit comments

Comments
 (0)