Fixed presets using wrong call mode (e.g. causing buttons to send UDP under direct change type)

Increased hue buffer
This commit is contained in:
cschwinne
2021-07-09 18:42:52 +02:00
parent 5da47636cf
commit 2c6850f6e4
11 changed files with 56 additions and 49 deletions

View File

@@ -93,7 +93,9 @@ void onMqttMessage(char* topic, char* payload, AsyncMqttClientMessageProperties
if (payload[0] == '{') { //JSON API
DynamicJsonDocument doc(JSON_BUFFER_SIZE);
deserializeJson(doc, payloadStr);
fileDoc = &doc;
deserializeState(doc.as<JsonObject>());
fileDoc = nullptr;
} else { //HTTP API
String apireq = "win&";
apireq += (char*)payloadStr;