Skip to main content
KAMAL Joshi
Associate
May 30, 2018
Question

MQTT Client over LWIP using LAN8742A

Posted on May 30, 2018 at 07:19

Hello everyone,

i am using stm32F429ZI nucleo board and i want to implement mqtt over LWIP,

i am able to send connect request and publish dummy data on mqtt server but after the keep alive time socket error occurs,

i have already attached systick timer  with client.cyclic_tick.

In debug mode timer is working and same way client.cyclic_tick is also getting incremented.

but after the predefined keep alive time socket error occurs , may be there is an issue regarding time attachment,

i have attached my mqtt timer with systick as below:

void MQTT_Tick_Timer_Handler(void)

 

{

 

client.cyclic_tick++;

 

} 

and inside stm32f4xx_it.c

void SysTick_Handler(void)

{

osSystickHandler();

MQTT_Tick_Timer_Handler();

}

 0690X0000060L0dQAE.png

    This topic has been closed for replies.

    2 replies

    daw ka
    Associate
    July 2, 2018
    Posted on July 02, 2018 at 14:10

    Hey,

    I'm also trying to implement mqtt on stm32F429. Unfortunately my code does not work. Can you share your project?
    KAMAL Joshi
    Associate
    July 4, 2018
    Posted on July 04, 2018 at 08:01

    Unfortunately, due to company's policy, i cant share the project, tell me your issues, problems where you are stucking, i might help, if possible you can share your project, the below link might be useful for you.

    http://www.nongnu.org/lwip/2_0_x/group__mqtt.html

     

    https://dzone.com/articles/mqtt-with-lwip-and-the-nxp-frdm-k64f