Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT auto disconnected after KeepAlive time #219

Closed
HoangPhuongPKH opened this issue Mar 11, 2021 · 4 comments
Closed

MQTT auto disconnected after KeepAlive time #219

HoangPhuongPKH opened this issue Mar 11, 2021 · 4 comments
Labels

Comments

@HoangPhuongPKH
Copy link

Hi all,
Sorry about my English,
I'm working with MQTT and STM32, FreeRTOS and lwIP
I followed this a example
https://github.com/eziya/STM32F4_HAL_ETH_MQTT_CLIENT
No problem if publish to STM32 topic subscribed every second.
But, if I connect to broker (mosquitto), then do nothing, after 60s keepalive, STM32 send PINGREQ and moquitto send back, but I debug that STM32 did not recevied PINGREQ and then disconnected.
In this example, if STM32 reconnect if disconnected, but at 4 times, it can't connected.
Anyone can help me, thanks!

@scaprile
Copy link
Contributor

scaprile commented Mar 11, 2021

You must be able to determine where the broker response gets lost, "STM32" is not the name of a module, analyze your application and determine where you have the problem. Then
If you have a problem with an STM32 application, place an issue in that application repo, or go to an ST forum and ask there
If you have a problem with lwIP, go to the lwIP forum and ask there
If you have a problem specific to Paho, then ask here, please properly describe what you send, what you get, what you expect to get, and why.

@Ivan-Bolshakov
Copy link

Ivan-Bolshakov commented Jun 10, 2021

Hello, I have the same problem right now. if you have solved the problem, I will be very grateful for the answer

@scaprile
Copy link
Contributor

scaprile commented Jun 10, 2021

Hello, I have the same problem right now. if you have solved the problem, I will be very grateful for the answer

Same answer: #219 (comment)

icraggs added a commit that referenced this issue Jul 27, 2023
@icraggs
Copy link
Contributor

icraggs commented Nov 29, 2023

I think we are adressing the issue (see the referenced commit above).

@icraggs icraggs closed this as completed Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants