micropython-lib icon indicating copy to clipboard operation
micropython-lib copied to clipboard

umqtt.simple: Close old socket on connect

Open x3a opened this issue 6 years ago • 0 comments

This closes the old socket of the client if one is present during a connection attempt to prevent the initialization of multiple sockets when the function is called repeatedly. It comes in handy if properly disconnecting from the broker isn't possible.

x3a avatar Apr 14 '20 19:04 x3a