mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-27 01:56:14 +01:00
State and define.h changed
This commit is contained in:
parent
8f2f052e2a
commit
981453d399
|
@ -101,8 +101,9 @@ typedef struct csmqttclient_t {
|
||||||
enum DccMQTTState
|
enum DccMQTTState
|
||||||
{
|
{
|
||||||
INIT,
|
INIT,
|
||||||
CONFIGURED, // server/client objects set
|
CONFIGURED, // server/client objects set
|
||||||
CONNECTED // mqtt broker is connected
|
CONNECTED, // mqtt broker is connected
|
||||||
|
CONNECTION_FAILED // Impossible to get the connection set after MAXRECONNECT tries
|
||||||
};
|
};
|
||||||
|
|
||||||
class DccMQTT
|
class DccMQTT
|
||||||
|
|
|
@ -38,12 +38,9 @@
|
||||||
#define ETHERNET_ON false
|
#define ETHERNET_ON false
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// MQTT is on only if the ethernet is enabled
|
// MQTT handles ethernet on it's own
|
||||||
#if ENABLE_MQTT && ETHERNET_ON
|
#if ENABLE_MQTT && (defined(ARDUINO_AVR_MEGA) || defined(ARDUINO_AVR_MEGA2560) || defined(ARDUINO_SAMD_ZERO) || defined(TEENSYDUINO))
|
||||||
#define MQTT_ON true
|
#define MQTT_ON true
|
||||||
#else
|
|
||||||
#define MQTT_ON false
|
|
||||||
#warning MQTT requires Ethernet to be enabled.
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// #if WIFI_ON && ETHERNET_ON
|
// #if WIFI_ON && ETHERNET_ON
|
||||||
|
|
Loading…
Reference in New Issue
Block a user