MQTT disconnecting, how to diagnose?

How are you generating the client id?
You cannot use the same id for two boards.