Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.68 KB

README.md

File metadata and controls

50 lines (33 loc) · 1.68 KB

Blynk MQTT client for Python 3

Python 3, with its extensive library ecosystem and ease of use, is a popular choice for developing IoT Edge and Embedded Systems, particularly for prototyping and scripting applications. It supports rapid development cycles due to its high-level syntax and dynamic typing. Python is often used in IoT devices for data analysis, web server implementation, and interfacing with hardware components.

Its versatility makes it suitable for a wide range of IoT applications, from simple sensor data collection to complex data processing and IoT gateway services.


Prepare your Device in Blynk.Cloud

  1. Create Blynk template based on the provided blueprint. Click the Use Blueprint button in MQTT Air Cooler/Heater Demo.
  2. In the left panel, select Devices
  3. Click New Device button
  4. Select From Template -> MQTT Demo, and click Create

Note

Please note the device credentials that appear in the upper right corner. You'll need them in the next step.

Edit config.py

Set your Blynk device credentials.

Run the sample using paho-mqtt

pip3 install --upgrade paho-mqtt
python3 blynk_paho.py

Run the sample using gmqtt

pip3 install --upgrade gmqtt uvloop
python3 blynk_gmqtt.py

Further reading