Hi !
EthernetClient cli;
char buf[4000];
buf=.... about 4000 bytes ...
Serial.println(buf); // buf is ok
cli->print(buf); // buf shorted at 2048 bytes...
I that somewhere in the reference ?
Thx
Hi !
EthernetClient cli;
char buf[4000];
buf=.... about 4000 bytes ...
Serial.println(buf); // buf is ok
cli->print(buf); // buf shorted at 2048 bytes...
I that somewhere in the reference ?
Thx
Start here
Using what code? On what board? Using What library?
oups...
missdrew:
Using what code? On what board? Using What library?
Arduino Due with W5500
code is above
ethernet lib is this one
/* Copyright 2018 Paul Stoffregen
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated documentation files (the "Software"), to deal in the Software
* without restriction, including without limitation the rights to use, copy, modify,
* merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
TheMemberFormerlyKnownAsAWOL:
Start here
Do you mean that ?
Reference Language | Libraries | Comparison | Changes
Ethernet : Client class
print()
Description
Print data to the server that a client is connected to. Prints numbers as a sequence of digits, each an ASCII character (e.g. the number 123 is sent as the three characters '1', '2', '3').
Syntax
client.print(data)
client.print(data, BASE)
Parameters
data: the data to print (char, byte, int, long, or string)
BASE (optional): the base in which to print numbers: DEC for decimal (base 10), OCT for octal (base 8), HEX for hexadecimal (base 16).
Returns
byte: returns the number of bytes written, though reading that number is optional
Reference Home
Corrections, suggestions, and new documentation should be posted to the Forum.
The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.
max777:
Do you mean that ?
Absolutely.
TheMemberFormerlyKnownAsAWOL:
Absolutely.
I dont see 2048 or 2K anywhere...
thanks anyway
max777:
I dont see 2048 or 2K anywhere...
thanks anyway
It wasn't about storage, it was about posing a question.
You're welcome
I really dont understand how to be more clear with that question...
"has anyone seen anything on a 2048 bytes limit in the arduino ethernet library ? (me not) thanks for information"
The wiznet chip has a limit of 2048 internal buffer size - so it is limited by hardware, not software.
missdrew:
The wiznet chip has a limit of 2048 internal buffer size - so it is limited by hardware, not software.
Oh ! thx
I didnt think about that... the UART have a limit of 1 byte but Serial.print can print very long things.
you can use
client.availableForWrite()
to wait until the packet is sent and there is space for the next one
Juraj:
you can use
client.availableForWrite()
to wait until the packet is sent and there is space for the next one
Good ! where can I find that kind of info (not in the ref) ?
So I will manage the fifo output by myself...
Thank you
max777:
Good ! where can I find that kind of info (not in the ref) ?
So I will manage the fifo output by myself...
Thank you
Hi
Unfortunately, the only info at https://github.com/arduino-libraries/Ethernet is that link
Ethernet - Arduino Reference
Nothing about availableForWrite()...
Maybe should I read the sources to find uncommented function ?
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.