diff --git a/code/nrf-connect/samples/zigbee/Kconfig b/code/nrf-connect/samples/zigbee/Kconfig index a2ef6c4..2dd871a 100644 --- a/code/nrf-connect/samples/zigbee/Kconfig +++ b/code/nrf-connect/samples/zigbee/Kconfig @@ -14,4 +14,8 @@ config PRST_ZB_BUILD_DATE config PRST_ZB_MODEL_ID string "Zigbee app model id." - default "b-parasite" \ No newline at end of file + default "b-parasite" + +config PRST_ZB_HARDWARE_VERSION + int "Zigbee basic cluster hardware version. (1 byte)" + default 2 \ No newline at end of file diff --git a/code/nrf-connect/samples/zigbee/src/prst_zb_attrs.c b/code/nrf-connect/samples/zigbee/src/prst_zb_attrs.c index c241458..74edf74 100644 --- a/code/nrf-connect/samples/zigbee/src/prst_zb_attrs.c +++ b/code/nrf-connect/samples/zigbee/src/prst_zb_attrs.c @@ -22,6 +22,8 @@ void prst_zb_attrs_init(struct zb_device_ctx *dev_ctx) { CONFIG_PRST_ZB_BUILD_DATE, ZB_ZCL_STRING_CONST_SIZE(CONFIG_PRST_ZB_BUILD_DATE)); + dev_ctx->basic_attr.hw_version = CONFIG_PRST_ZB_HARDWARE_VERSION; + dev_ctx->identify_attr.identify_time = ZB_ZCL_IDENTIFY_IDENTIFY_TIME_DEFAULT_VALUE; }