Closed ashajjar closed 5 years ago
Adding this flag to PlatformIO ini file solved the issue :
build_flags = -DMQTT_MAX_PACKET_SIZE=256
The issue is related to the payload maximum size specified by PubSub Library
PIO FTW!
There are other methods to send large data as well on PubSubClient see https://github.com/knolleary/pubsubclient/issues/517
Hi
Thank you for the code it is very useful. It works out of the box for me. However when I try to change the function
void sendData(void)
by adding extra fields to the reported state as follows :The code above actually prints something like this to the serial monitor, but never updates the shadow state:
Any suggestions ?
Thanks again :smiley: