mirror of https://github.com/arendst/Tasmota.git
Merge pull request #6426 from laurentdong/pullrequest
Increase MQTT subscribe JSON data size.
This commit is contained in:
commit
41c259767f
|
@ -685,7 +685,7 @@ void RulesTeleperiod(void)
|
||||||
bool RulesMqttData(void)
|
bool RulesMqttData(void)
|
||||||
{
|
{
|
||||||
bool serviced = false;
|
bool serviced = false;
|
||||||
if (XdrvMailbox.data_len < 1 || XdrvMailbox.data_len > 128) {
|
if (XdrvMailbox.data_len < 1 || XdrvMailbox.data_len > 256) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
String sTopic = XdrvMailbox.topic;
|
String sTopic = XdrvMailbox.topic;
|
||||||
|
@ -704,7 +704,7 @@ bool RulesMqttData(void)
|
||||||
if (event_item.Key.length() == 0) { //If did not specify Key
|
if (event_item.Key.length() == 0) { //If did not specify Key
|
||||||
value = sData;
|
value = sData;
|
||||||
} else { //If specified Key, need to parse Key/Value from JSON data
|
} else { //If specified Key, need to parse Key/Value from JSON data
|
||||||
StaticJsonBuffer<400> jsonBuf;
|
StaticJsonBuffer<500> jsonBuf;
|
||||||
JsonObject& jsonData = jsonBuf.parseObject(sData);
|
JsonObject& jsonData = jsonBuf.parseObject(sData);
|
||||||
String key1 = event_item.Key;
|
String key1 = event_item.Key;
|
||||||
String key2;
|
String key2;
|
||||||
|
|
Loading…
Reference in New Issue