Restart mqtt service?



  • Anyone suggest a pattern to restart mqtt when i reconnect wifi?

    I have mqtt class that i use, when i restart wifi i want to be able to restart mqtt, how do i do this?

    Do i just re-initilise class?

    bmqtt = bMQTT()

 

Pycom on Twitter