fix on mqtt date received handlers

This commit is contained in:
technyon
2023-01-27 20:26:54 +01:00
parent c9dbbb5dc1
commit e14e71b5cc
3 changed files with 15 additions and 22 deletions

View File

@@ -73,13 +73,7 @@ void NetworkLock::initialize()
void NetworkLock::onMqttDataReceived(const char* topic, byte* payload, const unsigned int length)
{
char value[50] = {0};
size_t l = min(length, sizeof(value)-1);
for(int i=0; i<l; i++)
{
value[i] = payload[i];
}
char* value = (char*)payload;
bool processActions = _network->mqttConnectionState() >= 2;