AnsweredAssumed Answered

MQTT Client over LWIP using LAN8742A

Question asked by KAMAL Joshi on May 30, 2018

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();
}

 

Outcomes