comfilepi:programming_the_serialport:index
Table of Contents
Programming the Serial Port in Mono
Note
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:
-
- Download a Visual Studio solution that implements this workaround
- Use the RJCP.DLL.SerialPortStream library, an independent serial port implementation.
Example
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 date or time are typed into the client, the server responds with the date and time respectively.
comfilepi/programming_the_serialport/index.txt · Last modified: by 127.0.0.1


