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

IP disconnected - mqtt_Connect() behaviour and mqtt detecting connection state #4

Open
johnofleek opened this issue Apr 15, 2016 · 0 comments

Comments

@johnofleek
Copy link

johnofleek commented Apr 15, 2016

I have found that if IP is disconnected when I call mqtt_Connect() the callback handler fails with isConnected == false. Which seems reasonable.

Later when the IP connection is connected no attempt is made by mqttClient to connect. Not sure if this is expected behaviour?

An mqtt_Status() function would be useful to check the connect / connecting status maybe to report
mqttClient_t.session.isConnected

I can see mqttClient_t* mqttMain_getClient(void); in the original IBM mqtt code. As Legato IPC doesn't support structures I think mqtt_Status() could work around this. Maybe in an ascii Key / Value to allow read access to other structure members as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant