Skip to content

Commit d25dff0

Browse files
authored
Merge pull request PhracturedBlue#9 from simone1999/patch-3
sending Ping Answer on InTopic exept on out Topic
2 parents a8d3239 + ef4cfa1 commit d25dff0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ESP8266MQTTMesh.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ void ESP8266MQTTMesh::HandleMessages(const char *topic, const char *msg) {
536536
if(strstr(topic,"Ping") == topic){
537537
dbgPrintln(EMMDBG_MSG, "answering Ping!");
538538
String topic = "Ping";
539-
publish(topic.c_str(), String(1).c_str());
539+
publish_node(topic.c_str(), String(1).c_str());
540540
}else if(strstr(topic,"Restart") == topic){
541541
dbgPrintln(EMMDBG_MSG, "Got Restart Command, restarting now");
542542
die();

0 commit comments

Comments
 (0)