fix errors in buildMqttPath method
This commit is contained in:
@@ -257,14 +257,14 @@ void Network::buildMqttPath(const char* prefix, const char* path, char* outPath)
|
|||||||
}
|
}
|
||||||
|
|
||||||
i=0;
|
i=0;
|
||||||
while(outPath[i] != 0x00)
|
while(path[i] != 0x00)
|
||||||
{
|
{
|
||||||
outPath[offset] = path[i];
|
outPath[offset] = path[i];
|
||||||
++i;
|
++i;
|
||||||
++offset;
|
++offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
outPath[i+1] = 0x00;
|
outPath[offset] = 0x00;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Network::registerMqttReceiver(MqttReceiver* receiver)
|
void Network::registerMqttReceiver(MqttReceiver* receiver)
|
||||||
|
|||||||
@@ -425,13 +425,13 @@ void NetworkOpener::buildMqttPath(const char* path, char* outPath)
|
|||||||
++offset;
|
++offset;
|
||||||
}
|
}
|
||||||
int i=0;
|
int i=0;
|
||||||
while(outPath[i] != 0x00)
|
while(path[i] != 0x00)
|
||||||
{
|
{
|
||||||
outPath[offset] = path[i];
|
outPath[offset] = path[i];
|
||||||
++i;
|
++i;
|
||||||
++offset;
|
++offset;
|
||||||
}
|
}
|
||||||
outPath[i+1] = 0x00;
|
outPath[offset] = 0x00;
|
||||||
}
|
}
|
||||||
|
|
||||||
void NetworkOpener::subscribe(const char *path)
|
void NetworkOpener::subscribe(const char *path)
|
||||||
|
|||||||
Reference in New Issue
Block a user