cancel
Showing results for 
Search instead for 
Did you mean: 

Implementing MQTT in STM32F407G

ggowd.1
Associate III

Hi Team,

I am currently working on a project involving the STM32F407G microcontroller, where I have configured MQTT to connect to a server. However, I am encountering persistent issues and have been unable to establish a successful connection.

The specific error messages I receive are:

  • mqtt_connect return -10
  • Publish err: -1
  • mqtt_connection_cb: Disconnected, reason: 256

My setup includes:

  • No RTOS
  • Ethernet communication through the ENC28J60 controller

Despite spending over a week troubleshooting, I have been unable to resolve these issues. I have attached the relevant sections of my code for your reference. Could someone please provide guidance or suggestions on how to overcome these errors? 

Best Regards,
Gagan Gowda

0 REPLIES 0