- Unity communicate with serialport.
- Serialport synchronous read and write data; parameters of serialport config in local file.
-
Unity 5.0 or above(If Unity 5.3 or higher version, the Json plugin(LitJson.dll) can be delete).
-
.Net Framework 2.0(Set the "Api Compatibility Level" as ".NET 2.0". Find in the path "Build Settings -> Player Settings -> Other Settings").
- Current Unity can not read serialport data in "Update" or "FixedUpdate" method.
- Current Unity not implemented the "SerialPort.ReceivedBytesThreshold" property.
- Current Unity can not callback the "SerialPort.DataReceived" event.
- Current Unity can not read the "SerialPort.BytesToRead" property.
- Current Unity can not execute the "SerialPort.DiscardInBuffer" method effectively.
- Current Unity can not execute the "SerialPort.DiscardOutBuffer" method effectively.
- SerialPortConfig : Config of serialport parameters.
- SerialPortConfigurer : Read config from local file and write config to file.
- SerialPortController : Synchronous read and write serialport data.
- Demos in the path "MGS-SerialPort\Scenes" provide reference to you.
- Serialport
- If you have any questions, feel free to contact me at mogoson@qq.com.