Open MQTT client outside of while loop. Increase sleep time to five seco...

...nds