MySQL Forums
Forum List  »  Connector/Arduino

Re: Packet Error
Posted by: Charles Bell
Date: November 05, 2014 09:03AM

You should consider doing the connect and disconnect in the loop() method. If the connect fails, sleep then try it again on the next time through the loop.

Having the connect in the setup() assumes the connection to the server is always present.

Options: ReplyQuote


Subject
Views
Written By
Posted
4501
October 04, 2014 01:53PM
2633
October 14, 2014 02:08PM
2178
November 01, 2014 04:46AM
Re: Packet Error
2017
November 05, 2014 09:03AM
1994
November 07, 2014 12:13PM
1908
November 07, 2014 01:19PM
1920
November 14, 2014 02:08PM
1750
November 19, 2014 01:39PM
1841
November 19, 2014 03:46PM
1932
November 26, 2014 10:14AM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

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.