-->
Page 1 of 3

STM32 with ESP8266

PostPosted: Tue Aug 04, 2020 7:35 am
by podgey
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

Re: STM32 with ESP8266

PostPosted: Wed Aug 05, 2020 2:36 am
by JurajA
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

Re: STM32 with ESP8266

PostPosted: Wed Aug 05, 2020 5:54 am
by podgey
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

Re: STM32 with ESP8266

PostPosted: Wed Aug 05, 2020 11:38 am
by JurajA
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.