Added hardware version config value.

This commit is contained in:
Ole Odendahl 2022-12-18 17:15:58 +01:00
parent ac8677f3e8
commit 580f425b01
No known key found for this signature in database
GPG key ID: E31DACC635D3BE01
2 changed files with 7 additions and 1 deletions

View file

@ -14,4 +14,8 @@ config PRST_ZB_BUILD_DATE
config PRST_ZB_MODEL_ID
string "Zigbee app model id."
default "b-parasite"
default "b-parasite"
config PRST_ZB_HARDWARE_VERSION
int "Zigbee basic cluster hardware version. (1 byte)"
default 2

View file

@ -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;
}