Changed mqtt buffer to 384, JSON buffer to <512>

This commit is contained in:
ArnieO
2020-02-21 23:29:01 +01:00
parent be75b013c0
commit e5ac823f69
3 changed files with 4 additions and 4 deletions

View File

@@ -35,7 +35,7 @@ void AmsWebServer::loop() {
server.handleClient();
}
void AmsWebServer::setJson(StaticJsonDocument<1024> json) {
void AmsWebServer::setJson(StaticJsonDocument<512> json) {
if(!json.isNull()) {
p = json["data"]["P"].as<int>();
po = json["data"]["PO"].as<int>();

View File

@@ -28,7 +28,7 @@ class AmsWebServer {
public:
void setup(AmsConfiguration* config, Stream* debugger, MQTTClient* mqtt);
void loop();
void setJson(StaticJsonDocument<1024> json);
void setJson(StaticJsonDocument<512> json);
private:
HwTools hw;