ChuckBell / MySQL_Connector_Arduino

Database connector library for using MySQL with your Arduino projects.
332 stars 133 forks source link

When ESP32 connects to MYSQL, the program will stop #200

Closed rdot-lee closed 1 year ago

rdot-lee commented 1 year ago

When connecting to the database again, the program will be stuck at conn.connect() > sendAuthenticationPacket() > scramble_password() > Sha1.print(password), fall into the loop after entering

rdot-lee commented 1 year ago

like this:

image

moosepr commented 1 year ago

Im having the exact same issue, I have traced it to the Sha1.print(password); line

I am also using an esp32!! and using the standard example for wifi connection

moosepr commented 1 year ago

heh

just looking through closed issues that mention the esp32 and came accross this commit

https://github.com/ChuckBell/MySQL_Connector_Arduino/commit/da48660b9b60cd717e856ed503bcc55ed91d755a

it adds some returns into the sha1 write functions. i made the same changes to my local files and everything now works!!

rdot-lee commented 1 year ago

thanks

The issue was fixed to resolve.