fix errors in buildMqttPath method

This commit is contained in:
technyon
2022-11-29 20:08:40 +01:00
parent 15318f5773
commit 84143aae65
3 changed files with 5 additions and 5 deletions

View File

@@ -257,14 +257,14 @@ void Network::buildMqttPath(const char* prefix, const char* path, char* outPath)
}
i=0;
while(outPath[i] != 0x00)
while(path[i] != 0x00)
{
outPath[offset] = path[i];
++i;
++offset;
}
outPath[i+1] = 0x00;
outPath[offset] = 0x00;
}
void Network::registerMqttReceiver(MqttReceiver* receiver)