Tanoda
|
Public Member Functions | |
byte[] | ReadSerialMessage () |
void | SendSerialMessage (byte[] message) |
delegate void | TearDownFunction () |
void | SetTearDownFunction (TearDownFunction userFunction) |
Public Attributes | |
string | portName = "COM3" |
int | baudRate = 9600 |
GameObject | messageListener |
int | reconnectionDelay = 1000 |
int | maxUnreadMessages = 1 |
byte | separator = 90 |
Protected Attributes | |
Thread | thread |
SerialThreadBinaryDelimited | serialThread |
While 'SerialController' only allows reading/sending text data that is terminated by new-lines, this class allows reading/sending messages using a binary protocol where each message is separated from the next by a 1-char delimiter.
Definition at line 18 of file SerialControllerCustomDelimiter.cs.
byte[] SerialControllerCustomDelimiter.ReadSerialMessage | ( | ) |
Definition at line 118 of file SerialControllerCustomDelimiter.cs.
void SerialControllerCustomDelimiter.SendSerialMessage | ( | byte[] | message | ) |
Definition at line 128 of file SerialControllerCustomDelimiter.cs.
void SerialControllerCustomDelimiter.SetTearDownFunction | ( | TearDownFunction | userFunction | ) |
Definition at line 140 of file SerialControllerCustomDelimiter.cs.
delegate void SerialControllerCustomDelimiter.TearDownFunction | ( | ) |
int SerialControllerCustomDelimiter.baudRate = 9600 |
Definition at line 25 of file SerialControllerCustomDelimiter.cs.
int SerialControllerCustomDelimiter.maxUnreadMessages = 1 |
Definition at line 37 of file SerialControllerCustomDelimiter.cs.
GameObject SerialControllerCustomDelimiter.messageListener |
Definition at line 29 of file SerialControllerCustomDelimiter.cs.
string SerialControllerCustomDelimiter.portName = "COM3" |
Definition at line 22 of file SerialControllerCustomDelimiter.cs.
int SerialControllerCustomDelimiter.reconnectionDelay = 1000 |
Definition at line 33 of file SerialControllerCustomDelimiter.cs.
byte SerialControllerCustomDelimiter.separator = 90 |
Definition at line 41 of file SerialControllerCustomDelimiter.cs.
|
protected |
Definition at line 45 of file SerialControllerCustomDelimiter.cs.
|
protected |
Definition at line 44 of file SerialControllerCustomDelimiter.cs.