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 796 forks source link

[SYS] Fix ESP8266 discovery publications #2100

Closed 1technophile closed 2 weeks ago

1technophile commented 2 weeks ago

Description:

Before this PR discovery messages at start were not published with ESP8266 due to memory, this PR fixes it. Also we don't need to use JSON_MSG_BUFFER_MAX with ESP32 into discovery messages as we have now a base of 1024 with JSON_MSG_BUFFER which is more than the requirement for the cover discovery message

Checklist: