Open GoogleCodeExporter opened 9 years ago
I found some of the problem. Actually what I thought was a crash ended up being
a blocking function in the Client::write() routine. It does not overflow the
buffer. It checks the transmit buffer, and will wait until the transmit buffer
has the space to take the next output.
This is blocking, and the processor seems to crash. With the addition of the
Client::free() routine, it would not be blocking. The code could check if there
is enough space before entering a potentially blocking function.
It also allows my code to determine if all data has been sent.
Original comment by t...@prolectron.com
on 25 Sep 2011 at 12:36
I had a similar issue where I would load a jpg image, and only receive half the
image before the connection dropped. This was an instant fix to this issue,
simply using the following statement surrounding the client.write command:
while (client.free() > 0) {
client.write(currentFile.read());
}
Original comment by michael....@gmail.com
on 27 Sep 2011 at 12:59
Amigo você poderia me orientar como fazer estas mudanças na biblioteca do
arduino, estou tentando a alguns dias enviar dados com arduino para um banco de
dados mysql usando 3G e me parece que esta mudança na biblioteca resolve o
problema.
Desde de ja se puder me orientar já agradeço..
Original comment by fabio.ol...@gmail.com
on 20 Feb 2015 at 12:06
Original issue reported on code.google.com by
t...@prolectron.com
on 16 Sep 2011 at 3:14