-
Notifications
You must be signed in to change notification settings - Fork 493
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
calling set() while streaming crashes #48
Comments
Might have a similar crash in #42, will try to repo. |
Note this doesn't crash anymore when using https://github.com/esp8266/Arduino master (esp8266/Arduino@5dd6acc). |
Is it allowed to stream and push at the same time? (even if using two instances of the firebase client) One of the comments in #41 indicates a push is not intended to work during a stream.... I'm looking for a way to stream configuration data/status from one firebase type while pushing / storing sensor data to a different type. I'm able to run each process independently without issues but the system crashes when pushing data with a stream active. |
@BrewCoder does it also crash with https://github.com/esp8266/Arduino master? |
@proppy I'm still having the same issue: Exception (29): ctx: cont
Pseudocode: setup(){ loop(){ *****every 30 seconds |
I think this is fixed with arduino-esp8266 master (esp8266/Arduino@43fb139). I was able to run successfully the following sketch:
|
@BrewCoder can you try again? |
I think I have the same issue, with esp8266/arduino pulled straight from master. |
I confirm that problem still exit , we could not push during stream #185 |
I dug into this a bit last week. The problem is having two SSL connections at the same time. I believe the issue is due to a lack of ram. Here is a simplified .ino based on the esp's streaming example, that will also crash: https://gist.github.com/ed7coyne/678398bb0d9fa1f826d581650606267a Here is an issue on the esp core that I beleive to be the root cause: esp8266/Arduino#2201 |
Is anyone working on a solution to this? I can't even get a simple example to stream without crashing. The moment the line FirebaseObject event = Firebase.readEvent(); is executed it crashes every time. I've tried just about every example I could find and every sketch crashes at this line. |
use more energy? |
Does anyone have any solution for this issue? |
With this change non-streaming operation will stop the stream and reuse the underlying http client. Call FirebaseArduino::stream again in order to reuse the stream. Fixes: FirebaseExtended#48
Summary
If you call stream() and then attempt to call set() from from another client, the device panics :(
Steps
Run this code
Result
The text was updated successfully, but these errors were encountered: