You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, in the example code:
....
Serial.println("Connecting mysql...");
if (conn.connect(server_addr, 3306, user, password)) {
delay(1000);
Serial.println("Connection mysql OK.");
// Initiate the query class instance
....
why the delay(1000) is added? Is it mandatory or can it be changed/removed ( and, depending on what?) ?
Thanks
VS
Hi. The delay is optional and I found it necessary to allow the relatively slow microcontroller to process network packets. You can experiment and adjust it as your hardware allows, but likely a sleep of some duration may be necessary.
On Oct 8, 2024, at 2:31 PM, elcomit ***@***.***> wrote:
Hi, in the example code:
....
Serial.println("Connecting mysql...");
if (conn.connect(server_addr, 3306, user, password)) {
delay(1000);
Serial.println("Connection mysql OK.");
// Initiate the query class instance
....
why the delay(1000) is added? Is it mandatory or can it be changed/removed ( and, depending on what?) ?
Thanks
VS
—
Reply to this email directly, view it on GitHub <#239>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AB6SHYHNIJMPJP2MX2ODEK3Z2QQIBAVCNFSM6AAAAABPS3XMFWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU3TGOJRGI4DSNY>.
You are receiving this because you are subscribed to this thread.
Activity
ChuckBell commentedon Oct 11, 2024