mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 10:46:31 +00:00
Merge pull request #14256 from s-hadinger/apply_mqtt_max_packet
Force `MQTT_MAX_PACKET_SIZE` in PubSub client
This commit is contained in:
commit
2afa88a78b
@ -188,6 +188,9 @@ void MqttDisableLogging(bool state) {
|
|||||||
PubSubClient MqttClient;
|
PubSubClient MqttClient;
|
||||||
|
|
||||||
void MqttInit(void) {
|
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
|
#ifdef USE_MQTT_AZURE_IOT
|
||||||
Settings->mqtt_port = 8883;
|
Settings->mqtt_port = 8883;
|
||||||
#endif //USE_MQTT_AZURE_IOT
|
#endif //USE_MQTT_AZURE_IOT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user