Re: Reconnecting to mysql connector
I just started playing with this library, on an Arduno Mega 2560 (clone).
It is receiving data over the serial port (at first using SoftwareSerial, but now using the Serial1 port), and then sending that to a MySQL database on the local network. I have it connected using an ENC28J60 ethernet adapter, and using the UIPEthernet library (which allows use of the same commands from the Ethernet library with the ENC28J60).
The Mega receives a stream of data approximately ever 10 seconds, and then is supposed to turn around and do a MySQL INSERT query to put the data into the database.
It works fine for a little while, but it usually breaks within 30 minutes or so (sometimes much faster). It gets to the point of sending the query, but it hangs at that point. I have to press the reset button on the Mega to get it going again.
I installed WireShark on the PC, but I didn't see anything unusual right before it hung.
Is there a way I can implement a "timeout," on the MySQL statemt, so it will jsut continue on if something doesn't work properly?
Thanks.
Subject
Views
Written By
Posted
14745
November 01, 2013 01:10AM
3885
November 01, 2013 10:22PM
3570
November 06, 2013 06:48AM
3065
November 06, 2013 09:35AM
3256
November 07, 2013 08:47AM
2811
November 11, 2013 02:03PM
Re: Reconnecting to mysql connector
4138
December 18, 2013 01:48PM
3094
December 18, 2013 03:48PM
3158
December 29, 2013 09:48AM
2657
December 30, 2013 03:15PM
2668
December 31, 2013 11:50AM
2866
January 06, 2014 01:59PM
2620
February 04, 2014 03:45PM
2573
February 04, 2014 04:20PM
2763
February 05, 2014 01:15PM
3560
February 05, 2014 02:36PM