@mkbenon You're welcome, I just gave you some hints, glad that you manage yourself (best learning method). :o) Also please note that MQTT example script changes WLAN antenna mode for external (WLAN.EXT_ANT). If your LoPy setup has the external antenna - that's OK, but if not you should use default internal antenna (WLAN.INT_ANT).