Skip to content

Commit 2fbb9e6

Browse files
Veijo Pesonencarlescufi
authored andcommitted
samples: lwm2m: allow longer endpoint names
Server might return the endpoint name in a registration reply. Default max allowed endpoint name is only 12 characters. Signed-off-by: Veijo Pesonen <[email protected]>
1 parent 33453e1 commit 2fbb9e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

samples/net/lwm2m_client/prj.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@ CONFIG_NET_CONFIG_MY_IPV6_ADDR="2001:db8::1"
3535
CONFIG_NET_CONFIG_PEER_IPV6_ADDR="2001:db8::2"
3636
CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.0.2.1"
3737
CONFIG_NET_CONFIG_PEER_IPV4_ADDR="192.0.2.2"
38+
39+
# Longer endpoint name might be returned in a registration reply
40+
CONFIG_COAP_EXTENDED_OPTIONS_LEN=y
41+
CONFIG_COAP_EXTENDED_OPTIONS_LEN_VALUE=40

0 commit comments

Comments
 (0)