Explore ESP32S [third] - the first test mqtt (1)

Then try MQTT it seems a lot of fun, the old rules first labeled reference Posts: https://blog.csdn.net/mrjiale/article/details/83750310

Mqtt build their own server: https://blog.csdn.net/yannanxiu/article/details/52703946

Look install mqtt document library, the document said method upip.install seems not ah.

It directly to the umtt of simple.py download directly into the well - then I changed the way the simple name change umqtt

 

Suddenly feeling a lot of pleasing to the eye, ah ha ha ha

Next it is to add another library in python on the computer: paho-mqtt: pip3 install paho-mqtt

And from http://www.mosquitto.org/download/ download here mosquitto

Than the original posted in another updated version. Later this has not used, this is to build a local server, I use this server hivemq

 

The following is a time moving bricks, ready ESP32 connected by wifi computer, the server computer is connected, a control led lamp on esp.

Guess you like

Origin blog.csdn.net/zhangyufeikk/article/details/93464964