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

Catch or handle fortune network fails #3

Open
doublejosh opened this issue Mar 8, 2020 · 1 comment
Open

Catch or handle fortune network fails #3

doublejosh opened this issue Mar 8, 2020 · 1 comment

Comments

@doublejosh
Copy link
Owner

The fetchFortune() function occasionally fails, upon debugging this has been during the getJSON() network step.

The addition of these settings (and the addition of setters in the library) has made improvements.

#define FIREBASE_MAX_TRY 5
#define FIREBASE_BUFFER_SIZE_RECEIVE 2048
#define FIREBASE_BUFFER_SIZE_SEND 2048
#define FIREBASE_RESPONSE_SIZE 4096
#define JSON_DOC_BYTES 2048

The initSaveInteraction() function will allow knowing the error rate, so this can be tested and prioritized.

@doublejosh
Copy link
Owner Author

Added rebootFortune() to improve the UX on restarts :)

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

1 participant