MySQL Forums :: Connector/Arduino :: I use MySQL connectorl and after some time it stops. PLEASE HELP


Advanced Search

Re: I use MySQL connectorl and after some time it stops. PLEASE HELP
Posted by: Daniel Wee ()
Date: February 07, 2017 11:01AM

Hi Chuck,

I've done more testing and the code I used to replace delay() works very well.

As for the read_data - what I ended up doing was to at a counter to see how many times wait_for_client returns without reaching the required 4-byte minimum. Once this gets too long, I just bail with a return.

I do this only for the header. Further down in the actual packet read, I left it alone and that seems good enough for now.

Both these changes have resolved all the resets. If you want to see my code, let me know and I'll post it here.

Options: ReplyQuote


Subject Views Written By Posted
I use MySQL connectorl and after some time it stops. PLEASE HELP 318 César Sebastián Silva Proaño 10/31/2016 03:42PM
Re: I use MySQL connectorl and after some time it stops. PLEASE HELP 244 Chuck Bell 10/31/2016 05:58PM
Re: I use MySQL connectorl and after some time it stops. PLEASE HELP 188 César Sebastián Silva Proaño 11/01/2016 05:57AM
Re: I use MySQL connectorl and after some time it stops. PLEASE HELP 244 César Sebastián Silva Proaño 11/01/2016 07:27AM
Re: I use MySQL connectorl and after some time it stops. PLEASE HELP 186 Chuck Bell 11/07/2016 08:21PM
Re: I use MySQL connectorl and after some time it stops. PLEASE HELP 164 Chuck Bell 11/07/2016 08:18PM
Re: I use MySQL connectorl and after some time it stops. PLEASE HELP 137 Daniel Wee 12/10/2016 10:25AM
Re: I use MySQL connectorl and after some time it stops. PLEASE HELP 176 Chuck Bell 12/12/2016 12:51PM
Re: I use MySQL connectorl and after some time it stops. PLEASE HELP 105 Daniel Wee 02/04/2017 04:48AM
Re: I use MySQL connectorl and after some time it stops. PLEASE HELP 98 Daniel Wee 02/04/2017 05:26AM
Re: I use MySQL connectorl and after some time it stops. PLEASE HELP 111 Chuck Bell 02/07/2017 09:02AM
Re: I use MySQL connectorl and after some time it stops. PLEASE HELP 71 Daniel Wee 02/07/2017 11:01AM
Re: I use MySQL connectorl and after some time it stops. PLEASE HELP 63 Daniel Wee 02/12/2017 05:11AM
Re: I use MySQL connectorl and after some time it stops. PLEASE HELP 10 Chuck Bell 04/20/2017 11:39AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.