Skip to content

Commit c3c4326

Browse files
committed
Bind unicast port to 5683
Use the CoAP port so the single Thread socket receives group messages.
1 parent a5e6fa8 commit c3c4326

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Kconfig.defconfig

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,18 @@
66

77
if KNX_IOT_ADD_ON
88

9-
# Silence libknx logs. Level 4 (DBG) is only in range when KNXIOT_DEBUG is set,
10-
# and level 0 keeps the stack's OC_PRINT output out of the build entirely.
119
config KNXIOT_DEBUG
1210
default y if KNX_VERBOSE_STACK_LOGS
1311

1412
config KNXIOT_LOG_LEVEL
1513
default 4 if KNX_VERBOSE_STACK_LOGS
1614
default 0
1715

16+
# Openthread implementation uses only a single socket
17+
# The default value of 0, makes the socket bind to a ephemeral port
18+
# This leads to a mismatch between ports, setting it to 5683 (CoAP port)
19+
# Allows the device to receive the messages
20+
config KNX_UNICAST_PORT
21+
default 5683
22+
1823
endif # KNX_IOT_ADD_ON

0 commit comments

Comments
 (0)