Renamed basic cluster attributes to comply with library defaults.

This commit is contained in:
Ole Odendahl 2022-12-18 17:12:25 +01:00
parent 0933c4a2a6
commit ac8677f3e8
No known key found for this signature in database
GPG key ID: E31DACC635D3BE01
3 changed files with 7 additions and 9 deletions

View file

@ -8,10 +8,10 @@ config PRST_ZB_PARENT_POLL_INTERVAL_SEC
int "Interval for when b-parasite polls its parent for data (in seconds)"
default 60
config BUILD_DATE
string "Zigbee app init basic date code. Can be used as build revision."
config PRST_ZB_BUILD_DATE
string "Zigbee app init basic date code. Can be used as build revision. (1 byte)"
default "20221214"
config MODEL_ID
config PRST_ZB_MODEL_ID
string "Zigbee app model id."
default "b-parasite"

View file

@ -14,13 +14,13 @@ void prst_zb_attrs_init(struct zb_device_ctx *dev_ctx) {
ZB_ZCL_SET_STRING_VAL(
dev_ctx->basic_attr.model_id,
PRST_BASIC_MODEL_ID,
ZB_ZCL_STRING_CONST_SIZE(PRST_BASIC_MODEL_ID));
CONFIG_PRST_ZB_MODEL_ID,
ZB_ZCL_STRING_CONST_SIZE(CONFIG_PRST_ZB_MODEL_ID));
ZB_ZCL_SET_STRING_VAL(
dev_ctx->basic_attr.date_code,
PRST_BASIC_DATE_CODE,
ZB_ZCL_STRING_CONST_SIZE(PRST_BASIC_DATE_CODE));
CONFIG_PRST_ZB_BUILD_DATE,
ZB_ZCL_STRING_CONST_SIZE(CONFIG_PRST_ZB_BUILD_DATE));
dev_ctx->identify_attr.identify_time =
ZB_ZCL_IDENTIFY_IDENTIFY_TIME_DEFAULT_VALUE;

View file

@ -5,8 +5,6 @@
#define PRST_ZIGBEE_ENDPOINT 10
#define PRST_BASIC_MANUF_NAME "b-parasite"
#define PRST_BASIC_MODEL_ID CONFIG_MODEL_ID
#define PRST_BASIC_DATE_CODE CONFIG_BUILD_DATE
#define PRST_ZB_DEVICE_ID 0x0008
#define PRST_ZB_DEVICE_VERSION 0