Serial port and GPS

SerialCpy.commonRead Method 

Handling of byte read from serial port int1

[Visual Basic]
Private Sub commonRead( _
   ByVal portidx As Integer, _
   ByVal b As Byte(), _
   ByVal len As Integer _
)
[C#]
private void commonRead(
   int portidx,
   byte[] b,
   int len
);

Parameters

portidx
Index of the port receiving bytes read
b
the array of bytes to handle
len
number of valid bytes in b

Remarks

Writes the received bytes to m_serial[portidx], if not empty or null.

See Also

SerialCpy Class | serial Namespace