fixed thread loop timer issue, updated mqttcore to provide disconnect date