Skip to content

Commit

Permalink
sending Ping Answer on InTopic exept on out Topic
Browse files Browse the repository at this point in the history
  • Loading branch information
simone1999 authored Dec 29, 2018
1 parent 7ae8518 commit ef4cfa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ESP8266MQTTMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ void ESP8266MQTTMesh::HandleMessages(const char *topic, const char *msg) {
if(strstr(topic,"Ping") == topic){
dbgPrintln(EMMDBG_MSG, "answering Ping!");
String topic = "Ping";
publish(topic.c_str(), String(1).c_str());
publish_node(topic.c_str(), String(1).c_str());
}else if(strstr(topic,"Restart") == topic){
dbgPrintln(EMMDBG_MSG, "Got Restart Command, restarting now");
die();
Expand Down

0 comments on commit ef4cfa1

Please sign in to comment.