Closed 28Pan closed 3 years ago
My first concern: https://forum.arduino.cc/index.php?topic=41009.0
for(int i = 0; i < (sizeof(date) / sizeof(char)); i++)
{
data[i] = (char)0;
}
Please move this to esp8266.com or https://gitter.im/esp8266/Arduino per the template as this involves a general programming question, a 3rd party library, external hardware, and an MCVE which can't be run by others. Closing here.
Platform
Settings in IDE
Problem Description
I've had this problem ever since I reuploaded the code to my board since it stopped sending the barcode to firebase. I did the same procedures I did when I first uploaded the code which was disconnecting the RX TX from the other board where the barcode scanner is connected then upload the code and connect is again. The problem is after the board connects to the wifi and I scan the barcode after that I get wtd reset.
It seems that the error is because of this part
Firebase.setString("Barcode",a); for(int i = 0; i <sizeof(data); i++) { data[i] = (char)0; }
Please help, I really need this for my project.
MCVE Sketch