BULK.read

Name
BULK.read

Description
It reads the stream sent on the USB line by a PC. It is equivalent to BULK.gets.

Syntax

 * buffer: This is the variable which will store the received character stream.
 * Type: char array


 * Output: Function returns the number of the total received bytes
 * Type: unsigned byte

Example
In this previous example, assuming that the received character stream is something like this: "1234567890Hello", you will have the following values in the variables at the point where says "<< your code":

Comments
See also interesting USB interfacing examples at section Category:09._Interfacing.