MySQL Forums
Forum List  »  Connector/Arduino

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
Re: I use MySQL connectorl and after some time it stops. PLEASE HELP
1121
February 07, 2017 11:01AM


Sorry, you can't reply to this topic. It has been closed.

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.