ArduinoHttpClient
ArduinoHttpClient copied to clipboard
Increase buffer socket size
Hi,
can the buffer socket size be increased or is it a physical limit?
WebSocketClient.h : 89
uint8_t iTxBuffer[128];
Hi @ddaydd,
I think we can make the size bigger for non-AVR boards. What board are you using and what size do you need?
my hardware is arduino mega 2560 with ethernet shield W5100, I think 200 characters would be fine, it's possible?
@sandeepmistry no news?
Is there a good reason not to create a setitXBuffersize function or add a constrctor to websocket ? Or at least a way to modify via #define... What's the best option to your opinion..?
This is a large limitation of clean reuse httparduinoclient on other websocket project like mqtt/pubsubclient over wss... (Cf Areve repo)
Thank you for this comment thread. I'm a noob that had an issue sending websockets using an Arduino Nano Uno Rev2. I got it work but as soon as I sent a semi bigger socket command it would screw up the Arduino. I just increased that iTxBuffer to 256 and I'm back in business!!!!
at least a way to modify via
#define
There is now a proposal for that here: https://github.com/arduino-libraries/ArduinoHttpClient/pull/124