I am working on adding a new LWM2M object (3302 Presence) to the lwm2m client project from SDK version 1.9.1. After creating and including the file "Kconfig.ipso_presence_sensor" which is located in the ipso folder, I now receive the below build errors:
warning: the default selection LWM2M_IPSO_PRESENCE_VERSION_1_0 (defined at C:\code\TWPS\src\ipso\Kconfig.ipso_presence_sensor:24, c:\code\TWPS\build\subsys\net\lib\lwm2m\Kconfig.ipso:310) of <choice> (defined at C:\code\TWPS\src\ipso\Kconfig.ipso_presence_sensor:20) is not contained in the choice
warning: the choice symbol LWM2M_IPSO_PRESENCE_VERSION_1_0 (defined at C:\code\TWPS\src\ipso\Kconfig.ipso_presence_sensor:24, c:\code\TWPS\build\subsys\net\lib\lwm2m\Kconfig.ipso:310) is defined with a prompt outside the choice
warning: the choice symbol LWM2M_IPSO_PRESENCE_VERSION_1_1 (defined at C:\code\TWPS\src\ipso\Kconfig.ipso_presence_sensor:27, c:\code\TWPS\build\subsys\net\lib\lwm2m\Kconfig.ipso:313) is defined with a prompt outside the choice
warning: the choice symbol LWM2M_IPSO_PRESENCE_VERSION_1_0 (defined at C:\code\TWPS\src\ipso\Kconfig.ipso_presence_sensor:24, c:\code\TWPS\build\subsys\net\lib\lwm2m\Kconfig.ipso:310) is defined with a prompt outside the choice
warning: the choice symbol LWM2M_IPSO_Parsing C:/code/TWPS/Kconfig
Loaded configuration 'C:/code/TWPS/build/zephyr/.config'
PRESENCE_VERSION_1_1 (defined at C:\code\TWPS\src\ipso\Kconfig.ipso_presence_sensor:27, c:\code\TWPS\build\subsys\net\lib\lwm2m\Kconfig.ipso:313) is defined with a prompt outside the choice
error: Aborting due to Kconfig warnings
Here is the file code: