Increase MQTT subscribe JSON data size.

This commit is contained in:
Laurent 2019-09-14 21:35:55 -04:00
parent ee7dc4e5bc
commit c3638289e2
1 changed files with 2 additions and 2 deletions

View File

@ -685,7 +685,7 @@ void RulesTeleperiod(void)
bool RulesMqttData(void)
{
bool serviced = false;
if (XdrvMailbox.data_len < 1 || XdrvMailbox.data_len > 128) {
if (XdrvMailbox.data_len < 1 || XdrvMailbox.data_len > 256) {
return false;
}
String sTopic = XdrvMailbox.topic;
@ -704,7 +704,7 @@ bool RulesMqttData(void)
if (event_item.Key.length() == 0) { //If did not specify Key
value = sData;
} else { //If specified Key, need to parse Key/Value from JSON data
StaticJsonBuffer<400> jsonBuf;
StaticJsonBuffer<500> jsonBuf;
JsonObject& jsonData = jsonBuf.parseObject(sData);
String key1 = event_item.Key;
String key2;