Back to Browse

Python MQTT program on CodeSpaces

51 views
Jun 29, 2025
12:02

This video demonstrates who a Python program can be created in GitHub Codespaces to subscribe to MQTT data. The Python program came from this site: https://medium.com/python-point/mqtt-basics-with-python-examples-7c758e605d4. The following lines were adjusted as per the following: mqttBroker ="broker.hivemq.com" client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION2) client.subscribe("sala306/tempws") #Note: you should make your topic unique time.sleep(120)

Download

1 formats

Video Formats

360pmp416.7 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Python MQTT program on CodeSpaces | NatokHD