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)

View File

@@ -425,13 +425,13 @@ void NetworkOpener::buildMqttPath(const char* path, char* outPath)
++offset;
}
int i=0;
while(outPath[i] != 0x00)
while(path[i] != 0x00)
{
outPath[offset] = path[i];
++i;
++offset;
}
outPath[i+1] = 0x00;
outPath[offset] = 0x00;
}
void NetworkOpener::subscribe(const char *path)

View File

@@ -1,3 +1,3 @@
#pragma once
#define nuki_hub_version "6.0"
#define nuki_hub_version "6.1"