diff --git a/MQTTInterface.cpp b/MQTTInterface.cpp index 9d5eccf..16bb76a 100644 --- a/MQTTInterface.cpp +++ b/MQTTInterface.cpp @@ -220,7 +220,9 @@ void mqttCallback(char *topic, byte *payload, unsigned int length) } default: // invalid command / message { - DIAG(F("MQTT Invalid DCC-EX command: %s"), (char *)payload); + // this may be the echo comming back on the main channel to which we are also subscribed + // si just ignore for now + // DIAG(F("MQTT Invalid DCC-EX command: %s"), (char *)payload); break; } } @@ -404,7 +406,7 @@ bool MQTTInterface::setupNetwork() IPAddress ip = Ethernet.localIP(); // reassign the obtained ip address DIAG(F("IP: %d.%d.%d.%d"), ip[0], ip[1], ip[2], ip[3]); DIAG(F("Port:%d"), IP_PORT); - + return true; } diff --git a/config.example.h b/config.example.h index 9da47a0..e327543 100644 --- a/config.example.h +++ b/config.example.h @@ -92,7 +92,7 @@ The configuration file for DCC-EX Command Station // //#define IP_ADDRESS { 192, 168, 1, 200 } -// + // ENABLE_MQTT: if set to true you have to have an Arduino Ethernet card (wired). This // is not for Wifi. You will need the Arduino Ethernet library as well as the PubSub // library from or get via the libray manager either from the IDE