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()

Log in to reply

Pycom on Twitter

Looks like your connection to Pycom Forum was lost, please wait while we try to reconnect.