Re: MQTT does not work if payload is over 107 characters
Posted: Sun Jun 16, 2019 3:30 am
in general: if you define it before the include,
If it doesn't work in arduino, it is a "feature" of the ide (reordering includes or else)
Code: Select all
in the.h should prevent it being redefined.// MQTT_MAX_PACKET_SIZE : Maximum packet size
#ifndef MQTT_MAX_PACKET_SIZE
#define MQTT_MAX_PACKET_SIZE 328
#endif
If it doesn't work in arduino, it is a "feature" of the ide (reordering includes or else)