-
Notifications
You must be signed in to change notification settings - Fork 35
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
Null pointer read exception reboot loop with use of a ESP32 Board #2
Comments
Many thanks! Would you like to pull a copy and push the fix back to the code base? Or I can add it in. Let me know. |
Has this issue been merged / resolved yet? I was having the same issue until i stumbled across this but am not sure where the } should go |
You can add it in, I adjusted the VEDirect::read code like this to work on the ESP32:
I only have a crashing ESP32 now still when Serial is not connected to a VE Direct device, i will try to solve this problem soon... |
Did you manage to solve the issue with the disconnected device? Thx. |
I got reboot loop crashes with the use of this library on a ESP32 board...
I managed to solve this by adding two null pointer - if's checks after the two strtok's in the souce code...
Now it's working fine...
label = strtok(line, "\t");
// Null pointer check, ESP32 Crashed without this
if (label)
{
value_str = strtok(0, "\t");
// Null pointer check, ESP32 Crashed without this
if (value_str)
{
Thanks for this great library !!!
The text was updated successfully, but these errors were encountered: