Skip to content

Commit 83978e6

Browse files
mike-scottjukkar
authored andcommitted
net: lwm2m: add max device power source config option
The code in the LwM2M "Device" object was checking for this max power source config value, except that it was never added as a Kconfig option. Let's go ahead and add it so apps can set the value appropriately. Signed-off-by: Michael Scott <[email protected]>
1 parent c1e180b commit 83978e6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

subsys/net/lib/lwm2m/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,15 @@ config LWM2M_RW_JSON_SUPPORT
171171
help
172172
Include support for writing JSON data
173173

174+
config LWM2M_DEVICE_PWRSRC_MAX
175+
int "Maximum # of device power source records"
176+
default 5
177+
range 1 20
178+
help
179+
This value sets the maximum number of power source data that a device
180+
can store. These are displayed via the "Device" object /3/0/6,
181+
/3/0/7 and /3/0/8 resources.
182+
174183
config LWM2M_DEVICE_ERROR_CODE_MAX
175184
int "Maximum # of device obj error codes to store"
176185
default 10

0 commit comments

Comments
 (0)