Is there a way to increase the number of simultaneous connections TCPSocket can handle? It currently only allows 3 connections which is not enough for my application. I found a setting “MBED_CONF_LWIP_SOCKET_MAX” which is in “mbed_config” and tried to change this from 4 to 6, however as soon as I press the compile button in Mbed Studio, it goes back to 4 by itself. I’m using OS5.
a socket can be used also for UDP, so it depends on your usage of sockets, TCP sockets require more RAM.
There are a lot of tuning parameters in mbed-os/mbed_lib.json at master · ARMmbed/mbed-os · GitHub
but for modifications you should check the lwip documentation. One thing I would change is
“lwip.tcp-mss”: 1460,
when you have enough ram, that is the max. number of data per frame and the default of 536 is low.
however when I compile I get the error: Error: Could not parse mbed app configuration from /tmp/chroots/ch-40770bcb-67c4-4fc0-97bd-be53a2b529f7/src/mbed_app.json