[SYS] Use PicoMQTT for MQTT communication (#1954)

* Update Arduino core for selected configurations

* Use PicoMQTT for MQTT communication
This commit is contained in:
Michał Leśniewski authored and GitHub committed 2024-07-03 11:39:58 -05:00
1 parent b20f2c4819
commit 9257433a50
8 files changed
+214 -233

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ PlatformIO config files work on the concept of overriding. At first, a very simp
[env]
framework = arduino
lib_deps =
${libraries.pubsubclient}
${libraries.picomqtt}
${libraries.arduinojson}
${libraries.arduinolog}
build_flags =
+3 -3
View File
@@ -38,9 +38,9 @@ instead of
## Repetitive MQTT disconnections or/and commands sent to the gateway not taken into account
Most probably a network issue, don't use a guest network and if going through a firewall check its rules. To put aside gateway issue, try to connect to a local broker on the same network.
## You don't see the messages appearing on your broker but they appears on the serial monitor
This is due to a too small MQTT packet size, open User_config.h and set:
`#define mqtt_max_packet_size 1024`
## OMG ignores messages sent to it via MQTT
This can happen if the messages are too big and exceed the internal buffer size limit. To fix this, check the size of the message you're sending (in bytes). Next, open `User_config.h` and set `mqtt_max_payload_size` to be greater than that size, e.g.:
`#define mqtt_max_payload_size 1024`
## ESP Continuous restart or strange behaviour:
This can be due to corruption of the ESP flash memory, try to erase flash and upload OMG on it again.