Add ZIGBEE_TOPIC_FNAME

This commit is contained in:
Adrian Deaconu 2022-09-19 15:19:43 +01:00
parent fc84ebe45e
commit af6706d6e2
2 changed files with 2 additions and 0 deletions

View File

@ -361,6 +361,7 @@
#define ZIGBEE_DISTINCT_TOPICS false // [SetOption89] Enable unique device topic based on Zigbee device ShortAddr
#define ZIGBEE_RMV_ZBRECEIVED false // [SetOption100] Remove ZbReceived form JSON message
#define ZIGBEE_INDEX_EP false // [SetOption101] Add the source endpoint as suffix to attributes, ex `Power3` instead of `Power` if sent from endpoint 3
#define ZIGBEE_TOPIC_FNAME false // [SetOption112] Enable friendly name in Zigbee topic (use with ZIGBEE_DISTINCT_TOPICS)
/*********************************************************************************************\
* END OF SECTION 1

View File

@ -1238,6 +1238,7 @@ void SettingsDefaultSet2(void) {
flag4.zigbee_distinct_topics |= ZIGBEE_DISTINCT_TOPICS;
flag4.remove_zbreceived |= ZIGBEE_RMV_ZBRECEIVED;
flag4.zb_index_ep |= ZIGBEE_INDEX_EP;
flag4.zb_topic_fname |= ZIGBEE_TOPIC_FNAME;
flag4.mqtt_tls |= MQTT_TLS_ENABLED;
flag4.mqtt_no_retain |= MQTT_NO_RETAIN;