mirror of https://github.com/arendst/Tasmota.git
Force `MQTT_MAX_PACKET_SIZE` in PubSub client
This commit is contained in:
parent
3916709d5f
commit
f2d8563597
|
@ -188,6 +188,9 @@ void MqttDisableLogging(bool state) {
|
|||
PubSubClient MqttClient;
|
||||
|
||||
void MqttInit(void) {
|
||||
// Force buffer size since the #define may not be visible from Arduino lib
|
||||
MqttClient.setBufferSize(MQTT_MAX_PACKET_SIZE);
|
||||
|
||||
#ifdef USE_MQTT_AZURE_IOT
|
||||
Settings->mqtt_port = 8883;
|
||||
#endif //USE_MQTT_AZURE_IOT
|
||||
|
|
Loading…
Reference in New Issue