Endorphin.IO


Introduction

This agent handles line-mode serial communication with a device, serialising commands sent and handling line-mode reads asynchronously

1: 
2: 
3: 
4: 
let serialPort = serialPort "COM3" defaultSerialConfiguration

use serial = new SerialAgent(serialPort,(fun x -> handle x))
serial.WriteLine "Hello world"

For more information see the test script

val serialPort : obj

Full name: Tutorial.serialPort
val serial : obj

Full name: Tutorial.serial
Fork me on GitHub