Flush FIFOs on startup and when payload length is too long.
Start of MQTT stuff