Switched to paho-mqtt client library.