1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-03-14 10:03:09 +01:00

Conditional compile for MQTT

This commit is contained in:
Gregor Baues 2021-04-25 21:59:39 +02:00
parent 33f2474c20
commit 8fc1470e4e

View File

@ -38,6 +38,13 @@
#define ETHERNET_ON false
#endif
// MQTT is on only if the ethernet is enabled
#if ENABLE_MQTT && ETHERNET_ON
#define MQTT_ON
#else
#warning MQTT requires Ethernet to be enabled.
#endif
// #if WIFI_ON && ETHERNET_ON
// #error Command Station does not support WIFI and ETHERNET at the same time.
// #endif