Skip to content
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

There is a strange problem when it ran to Serial.println(messageBuffer); #25

Open
blacke97 opened this issue Jul 9, 2022 · 1 comment

Comments

@blacke97
Copy link

blacke97 commented Jul 9, 2022

I write the example sketch to my ESP8266 board, Then it reboot all the time. I found that there is a strange problem when it ran to Serial.println(messageBuffer);
I comment it, and it works normally. I am not good at c++, so I haven't found the specific problem yet. And I'm not sure if sketch is the problem.

@konacurrents
Copy link

The main problem I find when the board reboots is that theSerial.printtries to print null strings. In that case I've used the C conditional inline if like: Serial.println(messageBuffer?messageBuffer:"NULL")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants