Added hardware version config value.
This commit is contained in:
parent
ac8677f3e8
commit
580f425b01
2 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue