Skip to content

Commit

Permalink
Fix readStream return false as expected http 200 when stream event pa…
Browse files Browse the repository at this point in the history
…yload does not contains http header
  • Loading branch information
mobizt committed Aug 9, 2019
1 parent 0589923 commit a5f1b55
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


Google's Firebase Realtime Database Arduino Library for ARM/AVR WIFI Development Boards
based on WiFi101 library, v 1.0.7
based on WiFi101 library, v 1.0.8

This client library provides the most reliable operations for read, store, update Firebase RTDB through REST API.

Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name=Firebase Arduino based on WiFi101

version=1.0.7
version=1.0.8

author=Mobizt

Expand Down
7 changes: 4 additions & 3 deletions src/Firebase_Arduino_WiFi101.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Google's Firebase Realtime Database Arduino Library for ARM/AVR WIFI Development Boards based on WiFi101 library, version 1.0.7
* Google's Firebase Realtime Database Arduino Library for ARM/AVR WIFI Development Boards based on WiFi101 library, version 1.0.8
*
*
* This library required WiFi101 Library to be installed.
* https://github.com/arduino-libraries/WiFi101
*
* August 7, 2019
* August 9, 2019
*
* Feature Added:
*
Expand Down Expand Up @@ -956,7 +956,8 @@ bool Firebase_Arduino_WiFi101::getServerResponse(FirebaseData &dataObj)

if (dataObj._httpCode == HTTPC_ERROR_READ_TIMEOUT)
return false;
return dataObj._httpCode == _HTTP_CODE_OK;
return dataObj._httpCode == _HTTP_CODE_OK || dataObj._httpCode == -1000;


EXIT_3:

Expand Down
4 changes: 2 additions & 2 deletions src/Firebase_Arduino_WiFi101.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Google's Firebase Realtime Database Arduino Library for ARM/AVR WIFI Development Boards based on WiFi101 library, version 1.0.7
* Google's Firebase Realtime Database Arduino Library for ARM/AVR WIFI Development Boards based on WiFi101 library, version 1.0.8
*
*
* This library required WiFi101 Library to be installed.
* https://github.com/arduino-libraries/WiFi101
*
* August 7, 2019
* August 9, 2019
*
* Feature Added:
*
Expand Down

0 comments on commit a5f1b55

Please sign in to comment.