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 is runing without WLAN #222

Open
odon4t4 opened this issue Oct 17, 2018 · 1 comment
Open

MQTT is runing without WLAN #222

odon4t4 opened this issue Oct 17, 2018 · 1 comment
Labels
Bug Something isn't working Platform: XDK110

Comments

@odon4t4
Copy link

odon4t4 commented Oct 17, 2018

We've had the situation that the MQTT client was running but before the WiFi access got a problem. So nothing at all was send out.

We should check if a connection was established and then sending out the stuff via MQTT

@wegendt-bosch wegendt-bosch added Bug Something isn't working Platform: XDK110 labels Oct 17, 2018
@wegendt-bosch wegendt-bosch changed the title [bug] MQTT is runing without WiFi MQTT is runing without WLAN Oct 17, 2018
@wegendt-bosch
Copy link
Contributor

wegendt-bosch commented Oct 18, 2018

This needs some thought. We can emit an assert(false) at the end of event handlers if exception != NO_EXCEPTION or we can modify all enqueues to enqueue the same event handler and pass the actual event handler as a pointer. The fake wrapper then calls the handler, checks its return and does something if an exception happened.
Another possibility would be that the SDK adds a defined way to react to errors returned by event handlers. This is the hardest and nicest solution.

See also #34 for an RFC on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Platform: XDK110
Projects
None yet
Development

No branches or pull requests

2 participants