mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-27 01:56:14 +01:00
update #1
This commit is contained in:
parent
6bd9e28be4
commit
851228fba6
|
@ -35,8 +35,8 @@
|
|||
#include <Ethernet.h>
|
||||
#include <Dns.h>
|
||||
#include <DCCTimer.h>
|
||||
|
||||
#include <DccMQTT.h>
|
||||
#include <Queue.h>
|
||||
|
||||
//---------
|
||||
// Variables
|
||||
|
@ -74,8 +74,7 @@ void mqttCallback(char *topic, byte *payload, unsigned int length)
|
|||
topicMessage[0] = '\0';
|
||||
strcpy(topicName, topic);
|
||||
strlcpy(topicMessage, (char *)payload, length + 1);
|
||||
Serial.println("some msg arrived");
|
||||
DIAG(F("MQTT Message arrived [%s]: %s"), topicName, topicMessage);
|
||||
DIAG(F("MQTT Message arrived [%s]: [%s]"), topicName, topicMessage);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -113,7 +112,7 @@ void DccMQTT::connect()
|
|||
case 6:
|
||||
case 1:
|
||||
{ // port(p), ip(i), domain(d),
|
||||
if (mqttClient.connect(clientID))
|
||||
if (mqttClient.connect(connectID))
|
||||
{
|
||||
DIAG(F("MQTT broker connected ..."));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user