-
Notifications
You must be signed in to change notification settings - Fork 66
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
Blocking Esphome #132
Comments
Hi Jan, Can you please send me your full sketch ? |
sure.
and the full log:
|
Hi! I have the exact same problem, here is my code and log (on a side note, this is working with a SmartSolar 100/50 and Smartshunt):
log:
Thanks! |
I have a similar issue, when i have installed esphome 10.6 the victron component report this warning, it si strange because sometimes it works fine but for exemple today, most the time not works... I have tried to reboot but it not works
this is my config:
|
one more remark, there is quite a bit of a timeout until available() gets false.
This code uses Serial.available() to check if there is data available in the serial buffer. If data is available, it enters a loop to read the data incrementally without blocking the loop() function. rebduilding the whole string will need to be done after no data is reveived for a while. |
Hi,
I like this component, however there are timing issues:
I tracked this down to the victron platform. Excluding it stops giving these warnings.
on a ESP32:
when disconnectin the serial, the warnings disappear.
Looking at the code this might be a problem:
while available could take some time.
more information here:
esphome/issues#4717
maybe reading the buffer state could help:
https://arduino.stackexchange.com/questions/9666/how-to-avoid-blocking-while-loop-reading-serial
cheers
Jan
The text was updated successfully, but these errors were encountered: