Skip to content

Commit

Permalink
Change default MQTT buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
gskjold committed Apr 23, 2022
1 parent d724a90 commit 70f5b0f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/AmsToMqttBridge.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1197,15 +1197,12 @@ void MQTT_connect() {
mqtt->disconnect();
yield();
} else {
uint16_t size = 128;
uint16_t size = 256;
switch(mqttConfig.payloadFormat) {
case 0: // JSON
case 4: // Home Assistant
size = 768;
break;
case 3: // Domoticz
size = 256;
break;
case 255: // Raw frame
size = 1024;
break;
Expand Down

0 comments on commit 70f5b0f

Please sign in to comment.