2017-07-07 11:04:03 -07:00
|
|
|
# Copyright (c) 2017 Linaro Limited
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
menuconfig LWM2M
|
|
|
|
bool "OMA LWM2M protocol stack"
|
2019-01-25 14:13:07 -08:00
|
|
|
select COAP
|
2017-10-16 15:15:37 -07:00
|
|
|
select HTTP_PARSER_URL
|
2019-01-28 11:55:23 -08:00
|
|
|
select NET_SOCKETS
|
|
|
|
select NET_SOCKETS_POSIX_NAMES
|
2017-07-07 11:04:03 -07:00
|
|
|
help
|
|
|
|
This option adds logic for managing OMA LWM2M data
|
|
|
|
|
|
|
|
if LWM2M
|
|
|
|
|
2018-10-05 15:14:58 +03:00
|
|
|
module = LWM2M
|
|
|
|
module-dep = LOG
|
|
|
|
module-str = Log level for LWM2M library
|
2018-09-19 11:22:19 +03:00
|
|
|
source "subsys/net/Kconfig.template.log_config.net"
|
2017-07-07 11:04:03 -07:00
|
|
|
|
2019-01-24 15:49:31 -08:00
|
|
|
config LWM2M_DTLS_SUPPORT
|
|
|
|
bool "Enable DTLS support in the LwM2M client"
|
2019-01-28 11:55:23 -08:00
|
|
|
select TLS_CREDENTIALS
|
|
|
|
select NET_SOCKETS_SOCKOPT_TLS
|
|
|
|
select NET_SOCKETS_ENABLE_DTLS
|
2019-01-24 15:49:31 -08:00
|
|
|
|
2021-12-23 12:08:49 +02:00
|
|
|
choice
|
|
|
|
prompt "LwM2M Security object version"
|
|
|
|
default LWM2M_SECURITY_OBJECT_VERSION_1_0
|
|
|
|
help
|
|
|
|
Select which version of the security object should be used.
|
|
|
|
|
|
|
|
config LWM2M_SECURITY_OBJECT_VERSION_1_0
|
|
|
|
bool "Security object version 1.0"
|
|
|
|
|
|
|
|
config LWM2M_SECURITY_OBJECT_VERSION_1_1
|
|
|
|
bool "Security object version 1.1 [EXPERIMENTAL]"
|
|
|
|
select EXPERIMENTAL
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2021-12-14 04:10:36 -08:00
|
|
|
choice
|
|
|
|
prompt "LwM2M Server object version"
|
|
|
|
default LWM2M_SERVER_OBJECT_VERSION_1_0
|
|
|
|
help
|
|
|
|
Select which version of the Server object should be used.
|
|
|
|
|
|
|
|
config LWM2M_SERVER_OBJECT_VERSION_1_0
|
|
|
|
bool "Server object version 1.0"
|
|
|
|
|
|
|
|
config LWM2M_SERVER_OBJECT_VERSION_1_1
|
|
|
|
bool "Server object version 1.1 [EXPERIMENTAL]"
|
|
|
|
select EXPERIMENTAL
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2019-10-15 09:56:03 +02:00
|
|
|
config LWM2M_DNS_SUPPORT
|
|
|
|
bool "Enable DNS support in the LWM2M client"
|
|
|
|
default y if DNS_RESOLVER
|
|
|
|
|
2017-07-07 11:04:03 -07:00
|
|
|
config LWM2M_ENGINE_STACK_SIZE
|
|
|
|
int "LWM2M engine stack size"
|
2019-02-18 21:57:56 -08:00
|
|
|
default 2560 if NET_LOG
|
|
|
|
default 2048
|
2017-07-07 11:04:03 -07:00
|
|
|
help
|
2019-11-01 10:24:07 +01:00
|
|
|
Set the stack size for the LWM2M library engine (used for handling
|
|
|
|
OBSERVE and NOTIFY events)
|
2017-07-07 11:04:03 -07:00
|
|
|
|
2017-09-01 01:11:43 -07:00
|
|
|
config LWM2M_ENGINE_MAX_MESSAGES
|
|
|
|
int "LWM2M engine max. message object"
|
|
|
|
default 10
|
|
|
|
help
|
|
|
|
Set the maximum message objects for the LWM2M library client
|
|
|
|
|
2019-01-25 14:13:07 -08:00
|
|
|
config LWM2M_COAP_BLOCK_SIZE
|
|
|
|
int "LWM2M CoAP block-wise transfer size"
|
|
|
|
default 256
|
|
|
|
range 64 1024
|
|
|
|
help
|
|
|
|
CoAP block size used by LWM2M when performing block-wise
|
2021-09-29 09:38:47 +03:00
|
|
|
transfers. Possible values: 64, 128, 256, 512 and 1024.
|
2019-01-25 14:13:07 -08:00
|
|
|
|
|
|
|
config LWM2M_ENGINE_MESSAGE_HEADER_SIZE
|
|
|
|
int "Room for CoAP header data"
|
|
|
|
default 48
|
|
|
|
range 24 128
|
|
|
|
help
|
|
|
|
Extra room allocated to handle CoAP header data
|
|
|
|
|
2021-09-29 08:23:18 +03:00
|
|
|
config LWM2M_COAP_MAX_MSG_SIZE
|
|
|
|
int "LWM2M CoAP maximum message size"
|
|
|
|
default LWM2M_COAP_BLOCK_SIZE
|
|
|
|
help
|
|
|
|
CoAP message size used by LWM2M. Minimum is the block size used
|
|
|
|
in blockwise transfers.
|
|
|
|
|
2021-02-17 15:47:28 +01:00
|
|
|
config LWM2M_ENGINE_VALIDATION_BUFFER_SIZE
|
|
|
|
int "Size of the validation buffer for the incoming data"
|
|
|
|
default 64
|
|
|
|
help
|
|
|
|
LwM2M will use the validation buffer during the write operation, to
|
|
|
|
decode the resource value before validating it (applies for resources
|
|
|
|
for which validation callback has been registered). Set this value to
|
|
|
|
the maximum expected size of the resources that need to be validated
|
|
|
|
(and thus have validation callback registered).
|
2021-03-10 13:14:31 +01:00
|
|
|
Setting the validation buffer size to 0 disables validation support.
|
2021-02-17 15:47:28 +01:00
|
|
|
|
2017-07-07 11:04:03 -07:00
|
|
|
config LWM2M_ENGINE_MAX_PENDING
|
|
|
|
int "LWM2M engine max. pending objects"
|
|
|
|
default 5
|
|
|
|
help
|
|
|
|
Set the maximum pending objects for the LWM2M library client
|
|
|
|
|
|
|
|
config LWM2M_ENGINE_MAX_REPLIES
|
|
|
|
int "LWM2M engine max. reply objects"
|
|
|
|
default 5
|
|
|
|
help
|
|
|
|
Set the maximum reply objects for the LWM2M library client
|
|
|
|
|
|
|
|
config LWM2M_ENGINE_MAX_OBSERVER
|
2017-08-16 14:16:02 -07:00
|
|
|
int "Maximum # of observable LWM2M resources"
|
2018-05-07 16:04:51 -07:00
|
|
|
default 10
|
2017-10-01 13:29:23 -07:00
|
|
|
range 5 200
|
2017-07-07 11:04:03 -07:00
|
|
|
help
|
|
|
|
This value sets the maximum number of resources which can be
|
|
|
|
added to the observe notification list.
|
|
|
|
|
2021-03-03 11:43:05 +01:00
|
|
|
config LWM2M_CANCEL_OBSERVE_BY_PATH
|
|
|
|
bool "Use path matching as fallback for cancel-observe"
|
|
|
|
help
|
|
|
|
Some ambiguous language in the LwM2M spec causes some LwM2M server
|
|
|
|
implementations to implement cancel-observe by specifying the resource
|
|
|
|
path rather than the token of the original observe request. Without
|
|
|
|
this option, cancel-observe may not work properly when connecting to
|
|
|
|
those servers.
|
|
|
|
|
2017-07-07 11:04:03 -07:00
|
|
|
config LWM2M_ENGINE_DEFAULT_LIFETIME
|
|
|
|
int "LWM2M engine default server connection lifetime"
|
|
|
|
default 30
|
2017-08-25 14:04:51 -07:00
|
|
|
range 15 65535
|
2017-07-07 11:04:03 -07:00
|
|
|
help
|
|
|
|
Set the default lifetime (in seconds) for the LWM2M library engine
|
|
|
|
|
2020-06-16 15:09:17 +02:00
|
|
|
config LWM2M_SECONDS_TO_UPDATE_EARLY
|
|
|
|
int "LWM2M Registration Update transmission time before timeout"
|
|
|
|
default 6
|
|
|
|
range 1 65535
|
|
|
|
help
|
|
|
|
Time in seconds before the registration timeout, when the LWM2M
|
|
|
|
Registration Update is sent by the engine. In networks with large
|
|
|
|
round trip times (like NB-IoT), it might be needed to set this value
|
|
|
|
higher, in order to allow the response to arrive before timeout.
|
|
|
|
|
2020-02-20 16:49:14 +01:00
|
|
|
config LWM2M_QUEUE_MODE_ENABLED
|
|
|
|
bool "Enable Queue Mode UDP binding"
|
|
|
|
help
|
|
|
|
Set the transport binding to UDP with Queue Mode (UQ).
|
|
|
|
|
|
|
|
config LWM2M_QUEUE_MODE_UPTIME
|
|
|
|
int "Specify time the LWM2M client should stay online in queue mode."
|
|
|
|
default 93
|
|
|
|
help
|
|
|
|
This config specifies time (in seconds) the device should stay online
|
|
|
|
after sending a message to the server. Note, that LWM2M specification
|
|
|
|
recommends this to be CoAP MAX_TRANSMIT_WAIT parameter (which
|
|
|
|
defaults to 93 seconds, see RFC 7252), it does not forbid other
|
|
|
|
values though.
|
|
|
|
|
2019-08-17 09:54:53 -07:00
|
|
|
config LWM2M_RD_CLIENT_SUPPORT
|
|
|
|
bool "support for LWM2M client bootstrap/registration state machine"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Client will use registration state machine to locate and connect to
|
|
|
|
LWM2M servers (including bootstrap server support)
|
|
|
|
|
|
|
|
config LWM2M_RD_CLIENT_SUPPORT_BOOTSTRAP
|
|
|
|
bool "Enable bootstrap support"
|
|
|
|
help
|
|
|
|
Enabling this setting allows the RD client to support bootstrap mode.
|
|
|
|
|
2020-09-10 13:22:42 +02:00
|
|
|
config LWM2M_RD_CLIENT_ENDPOINT_NAME_MAX_LENGTH
|
|
|
|
int "Maximum length of client endpoint name"
|
|
|
|
depends on LWM2M_RD_CLIENT_SUPPORT
|
|
|
|
default 33
|
|
|
|
help
|
|
|
|
Default: room for 32 hexadeciaml digits (UUID) + NULL
|
|
|
|
|
2020-09-08 11:54:31 +02:00
|
|
|
config LWM2M_RD_CLIENT_MAX_RETRIES
|
|
|
|
int "Specify maximum number of registration retries"
|
|
|
|
default 5
|
|
|
|
help
|
|
|
|
Specify maximum number of registration retries, before the application
|
|
|
|
is notified about the network failure. Once application is notified,
|
|
|
|
it's up to the application to handle this situation in a way
|
|
|
|
appropriate for the specific use-case (for instance by waiting for
|
|
|
|
LTE link to be re-established).
|
|
|
|
|
2019-08-17 09:54:53 -07:00
|
|
|
config LWM2M_PEER_PORT
|
|
|
|
int "LWM2M server port"
|
|
|
|
depends on LWM2M_RD_CLIENT_SUPPORT
|
|
|
|
default 5683
|
|
|
|
help
|
2021-09-23 13:00:46 +02:00
|
|
|
This is the default server port to connect to for LWM2M communication.
|
|
|
|
|
|
|
|
config LWM2M_FIRMWARE_PORT_NONSECURE
|
|
|
|
int "LWM2M firmware server port non-secure"
|
|
|
|
default 5683
|
|
|
|
help
|
|
|
|
This is the default server port to connect to for LwM2M firmware downloads over coap.
|
|
|
|
|
|
|
|
config LWM2M_FIRMWARE_PORT_SECURE
|
|
|
|
int "LWM2M firmware server port secure"
|
|
|
|
default 5684
|
|
|
|
help
|
|
|
|
This is the default server port to connect to for LwM2M firmware downloads over coaps.
|
2019-08-17 09:54:53 -07:00
|
|
|
|
2017-07-07 11:04:03 -07:00
|
|
|
config LWM2M_SECURITY_INSTANCE_COUNT
|
|
|
|
int "Maximum # of LWM2M Security object instances"
|
2019-01-25 22:36:47 -08:00
|
|
|
default 2 if LWM2M_RD_CLIENT_SUPPORT_BOOTSTRAP
|
2019-08-17 10:01:58 -07:00
|
|
|
default 1
|
2017-07-07 11:04:03 -07:00
|
|
|
range 1 10
|
|
|
|
help
|
|
|
|
This setting establishes the total count of LWM2M Security instances
|
|
|
|
available to the client.
|
|
|
|
|
2019-01-25 16:01:39 -08:00
|
|
|
config LWM2M_SECURITY_KEY_SIZE
|
|
|
|
int "Buffer size of the security key resources"
|
|
|
|
default 16
|
|
|
|
range 16 256
|
|
|
|
help
|
|
|
|
This setting establishes the size of the key (pre-shared / public)
|
|
|
|
resources in the security object instances.
|
|
|
|
|
2021-12-23 12:08:49 +02:00
|
|
|
config LWM2M_SECURITY_DTLS_TLS_CIPHERSUITE_MAX
|
|
|
|
int "Maximum # of DTLS/TLS ciphersuite resource instances"
|
|
|
|
default 5
|
|
|
|
range 0 20
|
|
|
|
depends on LWM2M_SECURITY_OBJECT_VERSION_1_1
|
|
|
|
help
|
|
|
|
This setting sets the maximum number of the resource instances of
|
|
|
|
a security object defined in LWM2M version 1.1. Affects the resource
|
|
|
|
0/X/16, where X is the object instance number.
|
|
|
|
|
2019-07-29 10:00:00 -07:00
|
|
|
config LWM2M_SERVER_DEFAULT_PMIN
|
|
|
|
int "Default server record PMIN"
|
2021-04-16 13:47:58 +02:00
|
|
|
default 0
|
2019-07-29 10:00:00 -07:00
|
|
|
help
|
|
|
|
Default minimum amount of time in seconds the client must wait
|
|
|
|
between notifications. If a resource has to be notified during this
|
|
|
|
minimum time period, the notification must be sent after the time
|
|
|
|
period expires.
|
|
|
|
|
|
|
|
config LWM2M_SERVER_DEFAULT_PMAX
|
|
|
|
int "Default server record PMAX"
|
2021-04-16 13:47:58 +02:00
|
|
|
default 0
|
2019-07-29 10:00:00 -07:00
|
|
|
help
|
|
|
|
Default maximum amount of time in seconds the client may wait
|
|
|
|
between notifications. When this time period expires a notification
|
|
|
|
must be sent.
|
|
|
|
|
2017-07-07 11:04:03 -07:00
|
|
|
config LWM2M_SERVER_INSTANCE_COUNT
|
|
|
|
int "Maximum # of LWM2M Server object instances"
|
2019-08-17 10:01:58 -07:00
|
|
|
default 2 if LWM2M_RD_CLIENT_SUPPORT_BOOTSTRAP
|
2017-10-01 13:29:23 -07:00
|
|
|
default 1
|
2017-07-07 11:04:03 -07:00
|
|
|
range 1 10
|
|
|
|
help
|
|
|
|
This setting establishes the total count of LWM2M Server instances
|
|
|
|
available to the client (including: bootstrap and regular servers).
|
|
|
|
|
2019-07-29 10:13:00 -07:00
|
|
|
config LWM2M_CONN_MON_OBJ_SUPPORT
|
|
|
|
bool "Connectivity Monitoring object support"
|
|
|
|
help
|
|
|
|
Include support for LWM2M Connectivity Monitoring Object (ID 4)
|
|
|
|
|
2021-12-27 15:01:44 +02:00
|
|
|
choice
|
|
|
|
prompt "LwM2M Connectivity Monitor object version"
|
|
|
|
default LWM2M_CONNMON_OBJECT_VERSION_1_0
|
|
|
|
depends on LWM2M_CONN_MON_OBJ_SUPPORT
|
|
|
|
help
|
|
|
|
Select Which version of the Connectivity Monitor object should be used.
|
|
|
|
|
|
|
|
config LWM2M_CONNMON_OBJECT_VERSION_1_0
|
|
|
|
bool "Connectivity monitor object version 1.0"
|
|
|
|
|
|
|
|
config LWM2M_CONNMON_OBJECT_VERSION_1_2
|
|
|
|
bool "Connectivity monitor object version 1.2 [EXPERIMENTAL]"
|
|
|
|
select EXPERIMENTAL
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2019-07-29 10:13:00 -07:00
|
|
|
config LWM2M_CONN_MON_BEARER_MAX
|
|
|
|
int "Maximum # of available network bearer resource instances"
|
|
|
|
depends on LWM2M_CONN_MON_OBJ_SUPPORT
|
|
|
|
default 1
|
|
|
|
help
|
|
|
|
This value sets the maximum number of available network bearer
|
|
|
|
resource instances. These are displayed via the
|
|
|
|
"Connection Monitoring" object /4/0/1.
|
|
|
|
|
|
|
|
config LWM2M_CONN_MON_APN_MAX
|
|
|
|
int "Maximum # of APN resource instances"
|
|
|
|
depends on LWM2M_CONN_MON_OBJ_SUPPORT
|
|
|
|
default 1
|
|
|
|
help
|
|
|
|
This value sets the maximum number of APN resource instances.
|
|
|
|
These are displayed via the "Connection Monitoring" object /4/0/7.
|
|
|
|
|
2017-07-07 11:04:03 -07:00
|
|
|
config LWM2M_FIRMWARE_UPDATE_OBJ_SUPPORT
|
|
|
|
bool "Firmware Update object support"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Include support for LWM2M Firmware Update Object (ID 5)
|
|
|
|
|
2021-06-15 16:05:56 +03:00
|
|
|
config LWM2M_FIRMWARE_UPDATE_OBJ_SUPPORT_MULTIPLE
|
|
|
|
bool "Support multiple firmware update objects [EXPERIMENTAL]"
|
|
|
|
depends on LWM2M_FIRMWARE_UPDATE_OBJ_SUPPORT
|
|
|
|
select EXPERIMENTAL
|
|
|
|
help
|
|
|
|
Support multiple instances of LWM2M Firwmare Update Object (ID 5)
|
|
|
|
|
|
|
|
config LWM2M_FIRMWARE_UPDATE_OBJ_INSTANCE_COUNT
|
|
|
|
int "Maximum # of LWM2M Firmware update object instances"
|
|
|
|
default 1
|
|
|
|
depends on LWM2M_FIRMWARE_UPDATE_OBJ_SUPPORT_MULTIPLE
|
|
|
|
help
|
|
|
|
This setting establishes the total count of LWM2M Firmware update
|
|
|
|
object instances available to the client.
|
|
|
|
|
2017-07-07 11:04:03 -07:00
|
|
|
config LWM2M_FIRMWARE_UPDATE_PULL_SUPPORT
|
|
|
|
bool "Firmware Update object pull support"
|
|
|
|
default y
|
|
|
|
depends on LWM2M_FIRMWARE_UPDATE_OBJ_SUPPORT
|
2017-07-05 23:07:41 +08:00
|
|
|
depends on (HTTP_PARSER || HTTP_PARSER_URL)
|
2017-07-07 11:04:03 -07:00
|
|
|
help
|
|
|
|
Include support for pulling a file from a remote server via
|
|
|
|
block transfer and "FIRMWARE PACKAGE URI" resource. This option
|
|
|
|
adds another UDP context and packet handling.
|
|
|
|
|
2021-12-09 11:13:49 +01:00
|
|
|
config LWM2M_SWMGMT_OBJ_SUPPORT
|
|
|
|
bool "Software management object support"
|
|
|
|
help
|
|
|
|
Include support for LWM2M Software Management Object (ID 9)
|
|
|
|
|
|
|
|
config LWM2M_SWMGMT_MAX_INSTANCE_COUNT
|
|
|
|
int "Maximum # of object instances"
|
|
|
|
depends on LWM2M_SWMGMT_OBJ_SUPPORT
|
|
|
|
default 1
|
|
|
|
|
|
|
|
config LWM2M_SWMGMT_PACKAGE_NAME_LEN
|
|
|
|
int "Maximum size of the software management object's name string"
|
|
|
|
depends on LWM2M_SWMGMT_OBJ_SUPPORT
|
|
|
|
default 64
|
|
|
|
|
|
|
|
config LWM2M_SWMGMT_PACKAGE_VERSION_LEN
|
|
|
|
int "Maximum size of the software management object's version string"
|
|
|
|
depends on LWM2M_SWMGMT_OBJ_SUPPORT
|
|
|
|
default 64
|
|
|
|
|
|
|
|
config LWM2M_SWMGMT_PACKAGE_URI_LEN
|
|
|
|
int "Maximum size of the software management object's download URI string"
|
|
|
|
depends on (LWM2M_SWMGMT_OBJ_SUPPORT || LWM2M_FIRMWARE_UPDATE_PULL_SUPPORT)
|
|
|
|
default 128
|
|
|
|
|
2017-07-25 16:54:25 +08:00
|
|
|
config LWM2M_NUM_BLOCK1_CONTEXT
|
|
|
|
int "Maximum # of LWM2M block1 contexts"
|
|
|
|
default 3
|
|
|
|
help
|
|
|
|
This value sets up the maximum number of block1 contexts for
|
|
|
|
CoAP block-wise transfer we can handle at the same time.
|
|
|
|
|
2017-07-27 18:30:44 -03:00
|
|
|
config LWM2M_FIRMWARE_UPDATE_PULL_COAP_PROXY_SUPPORT
|
|
|
|
bool "Firmware Update object pull via CoAP-CoAP/HTTP proxy support"
|
|
|
|
depends on LWM2M_FIRMWARE_UPDATE_PULL_SUPPORT
|
|
|
|
help
|
|
|
|
Include support for pulling firmware file via a CoAP-CoAP/HTTP proxy.
|
|
|
|
|
|
|
|
config LWM2M_FIRMWARE_UPDATE_PULL_COAP_PROXY_ADDR
|
|
|
|
string "CoAP proxy network address"
|
kconfig: Replace some single-symbol 'if's with 'depends on'
I think people might be reading differences into 'if' and 'depends on'
that aren't there, like maybe 'if' being needed to "hide" a symbol,
while 'depends on' just adds a dependency.
There are no differences between 'if' and 'depends on'. 'if' is just a
shorthand for 'depends on'. They work the same when it comes to creating
implicit menus too.
The way symbols get "hidden" is through their dependencies not being
satisfied ('if'/'depends on' get copied up as a dependency on the
prompt).
Since 'if' and 'depends on' are the same, an 'if' with just a single
symbol in it can be replaced with a 'depends on'. IMO, it's best to
avoid 'if' there as a style choice too, because it confuses people into
thinking there's deep Kconfig magic going on that requires 'if'.
Going for 'depends on' can also remove some nested 'if's, which
generates nicer symbol information and docs, because nested 'if's really
are so simple/dumb that they just add the dependencies from both 'if's
to all symbols within.
Replace a bunch of single-symbol 'if's with 'depends on' to despam the
Kconfig files a bit and make it clearer how things work. Also do some
other minor related dependency refactoring.
The replacement isn't complete. Will fix up the rest later. Splitting it
a bit to make it more manageable.
(Everything above is true for choices, menus, and comments as well.)
Detected by tweaking the Kconfiglib parsing code. It's impossible to
detect after parsing, because 'if' turns into 'depends on'.
Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2020-02-08 03:45:50 +01:00
|
|
|
depends on LWM2M_FIRMWARE_UPDATE_PULL_COAP_PROXY_SUPPORT
|
2017-07-27 18:30:44 -03:00
|
|
|
help
|
|
|
|
Network address of the CoAP proxy server.
|
|
|
|
|
2017-07-07 11:04:03 -07:00
|
|
|
config LWM2M_RW_JSON_SUPPORT
|
|
|
|
bool "support for JSON writer"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Include support for writing JSON data
|
|
|
|
|
2018-01-11 09:45:24 -08:00
|
|
|
config LWM2M_DEVICE_PWRSRC_MAX
|
|
|
|
int "Maximum # of device power source records"
|
|
|
|
default 5
|
|
|
|
range 1 20
|
|
|
|
help
|
|
|
|
This value sets the maximum number of power source data that a device
|
|
|
|
can store. These are displayed via the "Device" object /3/0/6,
|
|
|
|
/3/0/7 and /3/0/8 resources.
|
|
|
|
|
2017-07-07 11:04:03 -07:00
|
|
|
config LWM2M_DEVICE_ERROR_CODE_MAX
|
|
|
|
int "Maximum # of device obj error codes to store"
|
|
|
|
default 10
|
|
|
|
range 1 20
|
|
|
|
help
|
|
|
|
This value sets the maximum number of error codes that the device
|
|
|
|
object will store before ignoring new values.
|
|
|
|
|
2020-05-21 12:33:03 +02:00
|
|
|
config LWM2M_DEVICE_EXT_DEV_INFO_MAX
|
|
|
|
int "Maximum # of device obj external device info to store"
|
|
|
|
default 5
|
|
|
|
range 1 20
|
|
|
|
help
|
|
|
|
This value sets the maximum number of external device info that the
|
|
|
|
device object will store before ignoring new values.
|
|
|
|
|
2017-11-24 18:47:00 +08:00
|
|
|
config LWM2M_NUM_ATTR
|
|
|
|
int "Maximum # of LWM2M attributes"
|
|
|
|
default 20
|
|
|
|
help
|
|
|
|
This value sets up the maximum number of LwM2M attributes that
|
|
|
|
we can handle at the same time.
|
|
|
|
|
2019-07-29 10:14:00 -07:00
|
|
|
config LWM2M_LOCATION_OBJ_SUPPORT
|
|
|
|
bool "Location object support"
|
|
|
|
help
|
|
|
|
Include support for LWM2M Location Object (ID 6)
|
|
|
|
|
2021-10-06 08:47:06 -05:00
|
|
|
config LWM2M_GATEWAY_OBJ_SUPPORT
|
|
|
|
bool "Enable LwM2M Gateway Object (25) [EXPERIMENTAL]"
|
|
|
|
|
|
|
|
if LWM2M_GATEWAY_OBJ_SUPPORT
|
|
|
|
|
|
|
|
config LWM2M_GATEWAY_MAX_INSTANCES
|
|
|
|
int "Maximum number of bridged devices"
|
|
|
|
default 1
|
|
|
|
help
|
|
|
|
This setting establishes the total count of LwM2M Gateway
|
|
|
|
instances available to the LWM2M client.
|
|
|
|
|
|
|
|
config LWM2M_GATEWAY_DEFAULT_DEVICE_ID
|
|
|
|
string "Identifies the IoT Device bridged to the LwM2M Gateway"
|
|
|
|
default "Node"
|
|
|
|
|
|
|
|
config LWM2M_GATEWAY_DEVICE_ID_MAX_STR_SIZE
|
|
|
|
int "Maximum string size for device ID"
|
|
|
|
default 32
|
|
|
|
|
|
|
|
config LWM2M_GATEWAY_DEFAULT_DEVICE_PREFIX
|
|
|
|
string "Used for access to LwM2M Objects of this IoT Device"
|
|
|
|
default "n"
|
|
|
|
help
|
|
|
|
Defaults are n0, n1, n2, ..., n<max instances - 1>
|
|
|
|
|
|
|
|
config LWM2M_GATEWAY_PREFIX_MAX_STR_SIZE
|
|
|
|
int "Max string size for prefix"
|
|
|
|
default 32
|
|
|
|
|
|
|
|
config LWM2M_GATEWAY_DEFAULT_IOT_DEVICE_OBJECTS
|
|
|
|
string "Contains the Objects and Object Instances exposed by Gateway"
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
It uses the same CoreLnk format as Registration Interface.
|
|
|
|
This must be populated by Gateway.
|
|
|
|
Example:
|
|
|
|
</3>;ver=1.0,</3/0>,</4>;ver=1.0,</4/0>,
|
|
|
|
</5>;ver=1.0,</5/0>,</9>;ver=1.0,</9/0>,</3303/0>
|
|
|
|
|
|
|
|
config LWM2M_GATEWAY_IOT_DEVICE_OBJECTS_MAX_STR_SIZE
|
|
|
|
int "Maximum string size for IoT device objects"
|
|
|
|
default 128
|
|
|
|
|
|
|
|
endif # LWM2M_GATEWAY_OBJ_SUPPORT
|
|
|
|
|
2017-07-07 11:04:05 -07:00
|
|
|
menu "IPSO Alliance Smart Object Support"
|
|
|
|
|
|
|
|
source "subsys/net/lib/lwm2m/Kconfig.ipso"
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
2022-01-13 09:49:37 -06:00
|
|
|
menu "uCIFI Alliance Object Support"
|
|
|
|
|
|
|
|
source "subsys/net/lib/lwm2m/Kconfig.ucifi"
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
2017-07-07 11:04:03 -07:00
|
|
|
endif # LWM2M
|