fix mqtt gateway doesn't distribute node ids

This commit is contained in:
Marcelo Aquino
2015-02-26 21:19:47 -03:00
parent 7c82728633
commit 8d3f24424d
3 changed files with 129 additions and 102 deletions
@@ -99,7 +99,7 @@ void processEthernetMessages() {
uint8_t inChar = client.read();
readCnt++;
if (inputSize < MQTT_MAX_PACKET_SIZE-1) {
if (inputSize < MQTT_MAX_PACKET_SIZE) {
inputString[inputSize] = (char)inChar;
inputSize++;
}
@@ -111,7 +111,6 @@ void processEthernetMessages() {
break;
}
}
inputString[inputSize] = 0;
#ifdef TCPDUMP
Serial.print("<<");
char buf[4];