Catch or handle fortune network fails
Opened this issue · 1 comments
doublejosh commented
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 commented
Added rebootFortune()
to improve the UX on restarts :)