mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-25 23:37:16 +00:00
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;
|
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