mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 19:26:37 +00:00
Merge pull request #13235 from ascillato/Allow-KNX-and-Zigbee
Fix Optional Compilation of ZigBee with KNX
This commit is contained in:
commit
86e72bbedd
@ -61,7 +61,7 @@ lib_extra_dirs = lib/lib_basic
|
|||||||
[env:tasmota-zbbridge]
|
[env:tasmota-zbbridge]
|
||||||
build_flags = ${env.build_flags} -DFIRMWARE_ZBBRIDGE
|
build_flags = ${env.build_flags} -DFIRMWARE_ZBBRIDGE
|
||||||
board = esp8266_zbbridge
|
board = esp8266_zbbridge
|
||||||
lib_extra_dirs = lib/lib_basic, lib/lib_ssl
|
lib_extra_dirs = lib/lib_basic, lib/lib_ssl, lib/lib_div
|
||||||
|
|
||||||
[env:tasmota-zigbee]
|
[env:tasmota-zigbee]
|
||||||
build_flags = ${env.build_flags} -DUSE_ZIGBEE -DUSE_CCLOADER -DUSE_UFILESYS
|
build_flags = ${env.build_flags} -DUSE_ZIGBEE -DUSE_CCLOADER -DUSE_UFILESYS
|
||||||
|
@ -503,7 +503,7 @@
|
|||||||
#define USE_TLS // flag indicates we need to include TLS code
|
#define USE_TLS // flag indicates we need to include TLS code
|
||||||
#endif // USE_ZBBRIDGE_TLS
|
#endif // USE_ZBBRIDGE_TLS
|
||||||
|
|
||||||
#undef USE_KNX // Disable KNX IP Protocol Support
|
//#undef USE_KNX // Disable KNX IP Protocol Support
|
||||||
//#undef USE_WEBSERVER // Disable Webserver
|
//#undef USE_WEBSERVER // Disable Webserver
|
||||||
#undef USE_ENHANCED_GUI_WIFI_SCAN // Disable wifi scan output with BSSID (+0k5 code)
|
#undef USE_ENHANCED_GUI_WIFI_SCAN // Disable wifi scan output with BSSID (+0k5 code)
|
||||||
//#undef USE_WEBSEND_RESPONSE // Disable command WebSend response message (+1k code)
|
//#undef USE_WEBSEND_RESPONSE // Disable command WebSend response message (+1k code)
|
||||||
|
@ -644,6 +644,7 @@ void KNX_CB_Action(message_t const &msg, void *arg)
|
|||||||
knx.answer_4byte_float(msg.received_on, last_hum);
|
knx.answer_4byte_float(msg.received_on, last_hum);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if defined(USE_ENERGY_SENSOR)
|
||||||
else if (chan->type == KNX_ENERGY_VOLTAGE) // Reply KNX_ENERGY_VOLTAGE
|
else if (chan->type == KNX_ENERGY_VOLTAGE) // Reply KNX_ENERGY_VOLTAGE
|
||||||
{
|
{
|
||||||
knx.answer_4byte_float(msg.received_on, Energy.voltage[0]);
|
knx.answer_4byte_float(msg.received_on, Energy.voltage[0]);
|
||||||
@ -701,6 +702,7 @@ void KNX_CB_Action(message_t const &msg, void *arg)
|
|||||||
knx.answer_4byte_float(msg.received_on, Energy.total);
|
knx.answer_4byte_float(msg.received_on, Energy.total);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#ifdef USE_RULES
|
#ifdef USE_RULES
|
||||||
else if ((chan->type >= KNX_SLOT1) && (chan->type <= KNX_SLOT5)) // KNX RX SLOTs (read command)
|
else if ((chan->type >= KNX_SLOT1) && (chan->type <= KNX_SLOT5)) // KNX RX SLOTs (read command)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user