MQTT JSON component added
Compile with #define MQTT_MAX_PACKET_SIZE 512 modified in PubSubClient library. Default is #define MQTT_MAX_PACKET_SIZE 128. Will not work here.
This commit is contained in:
parent
5b1f020f02
commit
1955cbb096
1 changed files with 688 additions and 687 deletions
|
@ -27,6 +27,7 @@
|
|||
// MQTT
|
||||
#ifdef ENABLE_MQTT
|
||||
#include <PubSubClient.h>
|
||||
#include <ArduinoJson.h>
|
||||
|
||||
WiFiClient espClient;
|
||||
PubSubClient mqtt_client(espClient);
|
||||
|
|
Loading…
Reference in a new issue