Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
pre-built MQTT python library 'python-paho-mqtt' is available on the devhub. You can install this module using the opkg tool 'opkg install python-paho-mqtt'