Azure IoT hub - warning: attempt to assign the value 'y' to the undefined symbol AZURE_IOT_HUB_SAMPLE_DEVICE_ID_USE_HW_ID

My prj.conf:

CONFIG_PWM=y
# CONFIG_GPIO=y
CONFIG_I2C=y
CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=3
CONFIG_LOG_MODE_DEFERRED=n
CONFIG_I2C_LOG_LEVEL_DBG=y
CONFIG_INIT_STACKS=y
CONFIG_ASSERT=y

CONFIG_SERIAL=y
CONFIG_UART_ASYNC_API=y

#   root cause of i2c explained here: https://devzone.nordicsemi.com/f/nordic-q-a/117139/bus-fault-on-just-enabling-config_i2c-y-on-nrf5340dk
#   solution is to disable secure uart or something
CONFIG_TFM_SECURE_UART=n
CONFIG_TFM_LOG_LEVEL_SILENCE=y

CONFIG_GPIO_NRFX=y
CONFIG_NRFX_GPIOTE0=y
CONFIG_NRFX_GPIOTE_NUM_OF_EVT_HANDLERS=3

CONFIG_STD_CPP14=y

CONFIG_NRF_MODEM_LIB=y
CONFIG_LTE_LINK_CONTROL=y

CONFIG_AT_HOST_LIBRARY=y
CONFIG_UART_INTERRUPT_DRIVEN=y

CONFIG_NETWORKING=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_OFFLOAD=y

CONFIG_MQTT_HELPER_SEC_TAG=48
CONFIG_AZURE_IOT_HUB=y
CONFIG_AZURE_IOT_HUB_DPS=y
CONFIG_MODEM_JWT=y
CONFIG_HW_ID_LIBRARY_SOURCE_UUID=y

CONFIG_AZURE_IOT_HUB_DPS_ID_SCOPE="0ne0104xxxx"

# CONFIG_FLASH=y
# CONFIG_FLASH_MAP=y
# CONFIG_FCB=y
CONFIG_SETTINGS=y
# CONFIG_SETTINGS_FCB=y
# CONFIG_MPU_ALLOW_FLASH_WRITE=y

# CONFIG_AZURE_IOT_HUB_DEVICE_ID="0ne0104485E"

First question / issue:

I am trying to make use of the azure dps and since I'd like to use the UUID as device id i am trying to set 'AZURE_IOT_HUB_SAMPLE_DEVICE_ID_USE_HW_ID' according to the documentation:

https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/networking/azure_iot_hub.html#azure_iot_hub_dps_api )

However, upon build I get: warning: attempt to assign the value 'y' to the undefined symbol AZURE_IOT_HUB_SAMPLE_DEVICE_ID_USE_HW_ID

Second question:

Since I'd like to use the uuid as device ID, this is now my config in the code:

    struct azure_iot_hub_dps_config dps_cfg = {
        .handler = dps_handler,
        .reg_id = {
                .ptr = nullptr,
                .size = 0,
        },
        .id_scope = {
            .ptr = nullptr,
            .size = 0
        },
    };

    /* Initialize DPS */
    err = azure_iot_hub_dps_init(&dps_cfg);

Is this assumed correct or what should I do differently? 

Related