Added TLS and reconnection support
fix qos, add support for omitting timestamp in MQTT payload