samples: lwm2m: Set default bootstrap URI

Don't rely on just port number to select a bootstrap server.
Use full URI.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
This commit is contained in:
Seppo Takalo 2024-01-25 16:32:18 +02:00 committed by David Leach
parent 0ac5835c59
commit 2deb3d5b0c
2 changed files with 2 additions and 2 deletions

View File

@ -29,8 +29,9 @@ endif
config LWM2M_APP_SERVER
string "LwM2M server address"
default "coaps://192.0.2.2:5684" if LWM2M_DTLS_SUPPORT
default "coap://192.0.2.2:5683" if !LWM2M_DTLS_SUPPORT
default "coaps://192.0.2.2:5684" if (LWM2M_DTLS_SUPPORT && !LWM2M_RD_CLIENT_SUPPORT_BOOTSTRAP)
default "coaps://192.0.2.2:5784" if (LWM2M_DTLS_SUPPORT && LWM2M_RD_CLIENT_SUPPORT_BOOTSTRAP)
help
LwM2M server address. Write as a full URI including optional port number.
Only accepted protocols are "coap://" and "coaps://"

View File

@ -1,2 +1 @@
CONFIG_LWM2M_PEER_PORT=5783
CONFIG_LWM2M_RD_CLIENT_SUPPORT_BOOTSTRAP=y