The use of the ESP8266 in the world of IoT

User avatar
By podgey
#88181 Hi, I'm looking to implement MQTT to control outputs of the STM32 development board and also publish data from it.

I have connected the ESP8266 with the STM32 and it can now see and connect to my wifi network using uart and AT commands.

Can anyone advise how to connect to an MQTT server and subscribe and publish from topics, I cant seem to find an example for this?

Is there a way to implement MQTT using AT commands to and from the ESP8266?

Thanks in advance
User avatar
By JurajA
#88186 the AT firmware 2.1.0 has AT commands for MQTT.

or for Arduino way you can or use my WiFiEspAT library with for example the PubSubClient library
User avatar
By podgey
#88190
JurajA wrote:the AT firmware 2.1.0 has AT commands for MQTT.

or for Arduino way you can or use my WiFiEspAT library with for example the PubSubClient library


Excellent I will look into the 2.1.0, as that seems like a good way to do it.

When you say Arduino way, do you mean update the software on the STM32 to use Arduino software and code?

Thanks in advacce
User avatar
By JurajA
#88199
podgey wrote:
JurajA wrote:the AT firmware 2.1.0 has AT commands for MQTT.

or for Arduino way you can or use my WiFiEspAT library with for example the PubSubClient library


Excellent I will look into the 2.1.0, as that seems like a good way to do it.

When you say Arduino way, do you mean update the software on the STM32 to use Arduino software and code?

Thanks in advacce


If you use Arduino for STM32. From your post it was not clear what framework do you use.