The Mono framework's
SerialPort class does not support the
DataReceived event, so it may be necessary poll the serial port to receive data, or use one of the following potential workarounds:
The following example implements a client and a server.
Server.exe runs on a Windows PC, and
Client.exe runs on the ComfilePi. When the commands
time are typed into the client, the server responds with the date and time respectively.