Skip to content

Disconnected operations #6

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

Closed
MarcFinns opened this issue Mar 2, 2017 · 4 comments
Closed

Disconnected operations #6

MarcFinns opened this issue Mar 2, 2017 · 4 comments
Assignees
Milestone

Comments

@MarcFinns
Copy link

Hi Arcao,
I have a project that needs to run also when disconnected from Wifi.
I integrated your lib and have a number of syslog statements in my code. What happens when syslog is called and connection is not there? is it handled gracefully or is it an error condition? Does it lock until a timeout? please let me know.
thanks!

@MarcFinns
Copy link
Author

Specifically, if the lib does not handle it already I propose to add a setConnected(bool) API and check if(connected) before doing network stuff.
Please let me know if you would accept a pull request... thanks

@arcao
Copy link
Owner

arcao commented Mar 7, 2017

At the moment it's handled gracefully. In a next major version log and logf if message was sent successfully (see note bellow).

Note: This library use UDP protocol which is stateless, thus there is no way to check if server received log message or not.

@arcao arcao self-assigned this Mar 7, 2017
@arcao arcao added this to the Version 3.0.0 milestone Mar 7, 2017
@MarcFinns
Copy link
Author

Thanks for your time. It is clear that with udp you can't check it messages are received... I just wanted to make sure that the call does not crash if disconnected. That's good. Thanks again!!

@arcao
Copy link
Owner

arcao commented Apr 17, 2017

This is fixed in #3.

@arcao arcao closed this as completed Apr 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants