I read in the API that the MCU host communication works with a buffer, and this buffer's size is limited. The argument 'length' is an int - I would have expected an unsigned int. Does this mean that the largest size of this buffer is 32767? Or is the limit in reality some other size?
Thanks for your reply. Meanwhile I will give you some context why I am interested in such a detail.
In mjka wrote that host_send costs about 1 ms. I need a faster sampling with some sensors I could read from the MCU. It looks like you can poll every 10 microsec within the MCU, but you can't get the data out to the atom at this speed.
So I wondered if it is possible to (fast) read a large amount of samples in the MCU and put in a local buffer. From time to time I could send the corresponding data as bulk to the host. On condition of course, that the buffer size can be large enough to make this concept work.
Note that I did some tests around this and noticed that the edison don't like this kind of programming against its limits. I lost my wifi configuration several times and had to re-install the firmware once. So I decided rather to ask it than to program against the edison's limits.
The buffer size is limited to 255. I found this information in the MCU API available in the MCU SDK installation directory. You should find it in your PC in the following direction: C:\...\edison-mcusdk-win64-1.0.10\docs\api_doc\html\mcu_api_8h.html