1technophile / OpenMQTTGateway

MQTT gateway for ESP8266 or ESP32 with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility & LoRa.
https://docs.openmqttgateway.com
GNU General Public License v3.0
3.62k stars 797 forks source link

[SYS] Detect instable MQTT connection with AWS #1979

Closed 1technophile closed 5 months ago

1technophile commented 5 months ago

Description:

This PR enables the detection of unstable connections when using AWS IoT; an unstable connection is defined as 5 or more MQTT connections within the last minute. If this type of connection is detected we deactivate the MQTT publication to focus on data received. When receiving a new set of connection parameters, we also restart directly if the parameters do not work instead of considering other parameters like xtomqtt.

Checklist: