Skip to content

Commit

Permalink
Merge pull request sfeakes#120 from agprimatic/master
Browse files Browse the repository at this point in the history
Update net_services.c
  • Loading branch information
sfeakes authored Sep 13, 2020
2 parents 564269e + 0f00067 commit 42586e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net_services.c
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ void action_mqtt_message(struct mg_connection *nc, struct mg_mqtt_message *msg)
//unsigned int i;
//LOG(NET_LOG,LOG_DEBUG, "MQTT: topic %.*s %.2f\n",msg->topic.len, msg->topic.p, atof(msg->payload.p));
// If message doesn't end in set or increment we don't care about it.
if (strncmp(&msg->topic.p[msg->topic.len -4], "/set", 4) != 0 && strncmp(&msg->topic.p[msg->topic.len -4], "/increment", 10) != 0) {
if (strncmp(&msg->topic.p[msg->topic.len -4], "/set", 4) != 0 && strncmp(&msg->topic.p[msg->topic.len -10], "/increment", 10) != 0) {
LOG(NET_LOG,LOG_DEBUG, "MQTT: Ignore %.*s %.*s\n",msg->topic.len, msg->topic.p, msg->payload.len, msg->payload.p);
return;
}
Expand Down Expand Up @@ -2039,4 +2039,4 @@ void OLD_action_websocket_request(struct mg_connection *nc, struct websocket_mes
LOG(NET_LOG,LOG_DEBUG, "WS: Unknown parameter %s\n", request.first.value);
}
}
}
}

0 comments on commit 42586e5

Please sign in to comment.