arduino-libraries / ArduinoHttpClient

Arduino HTTP Client library
282 stars 170 forks source link

Increase buffer socket size #68

Open ddaydd opened 5 years ago

ddaydd commented 5 years ago

Hi,

can the buffer socket size be increased or is it a physical limit?

WebSocketClient.h : 89

uint8_t iTxBuffer[128];

sandeepmistry commented 5 years ago

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?

ddaydd commented 5 years ago

my hardware is arduino mega 2560 with ethernet shield W5100, I think 200 characters would be fine, it's possible?

ddaydd commented 5 years ago

@sandeepmistry no news?

clysss commented 3 years ago

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)

asoap commented 3 years ago

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!!!!

per1234 commented 2 years ago

at least a way to modify via #define

There is now a proposal for that here: https://github.com/arduino-libraries/ArduinoHttpClient/pull/124