|Top Previous Next|
Length of received data is limited by one of the three factors (whichever is smaller): amount of data in the RX buffer itself, capacity of the "receiving" string variable, and the limit set by the maxinplen argument.
String variables can hold up to 255 bytes of data, so this method will only allow you to preview up to 255 "next" bytes from the RX buffer.
In the UART mode (ser.mode= 0- PL_SER_MODE_UART) the data is received "as is". For Wiegand and clock/data mode (ser.mode= 1- PL_SER_MODE_WIEGAND and ser.mode= 2- PL_SER_MODE_CLOCKDATA) each data character represents one data bit and only two characters are possible: '0' or '1'.