Fix problem MQTT gateway problem reported by @FotoFieber
http://forum.mysensors.org/topic/1870/esp8266-wifi-gateway-port-for-mysensors/138
This commit is contained in:
@@ -66,7 +66,7 @@ void incomingMQTT(char* topic, byte* payload,
|
||||
debug(PSTR("Message arrived on topic: %s\n"), topic);
|
||||
char *str, *p;
|
||||
uint8_t i = 0;
|
||||
for (str = strtok_r(topic, "/", &p); str && i < 5;
|
||||
for (str = strtok_r(topic, "/", &p); str && i <= 5;
|
||||
str = strtok_r(NULL, "/", &p)) {
|
||||
switch (i) {
|
||||
case 0: {
|
||||
|
||||
Reference in New Issue
Block a user