MQTT: Implements reconnecting in publish thread in case thread is waken-up but client is disconnected.
Note: paho's lostConnection callback got already disabled in previous commit.
{
"ID": "wamptest",
"active": true,
"protocolOptions": {
"autoPingInterval": 60,
"autoPingTimeout": 20
},
"realm": "Automation",
"url": "ws://127.0.0.1:8888"
}