Troi Serial Plug-in > Functions reference > Serial_DataWasReceived
Returns the name of the port when data was received on a serial port. Use this function to see if this is an event that needs to be handled.
Serial_DataWasReceived ( switches )
Troi Serial Plug-in > Functions reference > Serial_Receive
Receives data from a serial port with the specified name. The port needs to be opened first (see Serial_Open). If no data is available an empty string is returned: “”.
Serial_Receive ( switches ; portname )