Missing mqtt messages on persistent session restart #443
-
Hello. I am using aws iot device SDK cpp v1.15.2 undex Windows 7 and Windows 10. My test app is very close to basic_pub_sub SDK sample. I try to setup OnMessageReceivedHandler via SetOnMessageHandler() before I call connect() function in my app. But the problem is the same: it works OK when I send message with device connected, but does not work, if I send message while the device is offline. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
What value are you using for the
|
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
What value are you using for the
keepAliveTimeSecs
? It might be that your session is expiring and you end up with a clean session because of that.Docs: