Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years ago.
mbed connector and mbed client limitations
Hi, I'm using mbed device connector and mbed client with mbed os device. I have a question, what is the bandwidth limitation of mbed connector? for example, I can create a resource and define it as a string. what is the maximum size of it? I want to put a large string into a resource that can be accessed from a web application. If this solution doesn't work. do you know a similar way to putting a simple text file to a resource? thanks.
1 Answer
8 years ago.
The default limit is 1152 bytes, but can be expanded to 65K. From the docs:
Quote:
The maximum single UDP message size that mbed Client can receive is 1152 bytes. The actual payload size is 1137 bytes, the header information using the remaining 15 bytes.
For transferring larger amounts of data, the Blockwise feature must be deployed. When using this feature, mbed Client can handle messages up to 65KB by default. This feature is disabled by default. To receive more than 65KB, see Setting an external handler for block-wise messages.
That page also contains instructions on how to up the limit.
As far as I know there shouldn't be any real limitation on this, as it could be used for updates over CoAP over LWM2M as well. However, when trying on a 2000 byte value I get an error from Connector. I've asked the Connector / mbed Client team for a clarification.
posted by Jan Jongboom 08 Feb 2017