Search found 1 match

by SebaNowy
Wednesday 17 July 2019 11:07
Forum: DIY Hardware and Protocols
Topic: MQTT domoticz/out topic on arduino
Replies: 11
Views: 7547

Re: MQTT domoticz/out topic on arduino

PubClient has a default message size which is 128 bytes. As you probably know json message from domoticz on domiticz/out is much bigger. What you need to do is edit PubSubClient.h and change default size of message.
Just change
#define MQTT_MAX_PACKET_SIZE 128
to
#define MQTT_MAX_PACKET_SIZE 1024