This is a paid asset, but now you can download SimpleSerialPort Free.
Detail this asset from Unity Store: Original Link
SimpleSerialPort v1.11 (Latest version)
“If possible, please buy the package to support the developer”
SimpleSerialPort allows you to communicate with any device via the serial interface. This includes also BLUETOOTH devices. (currently not tested on smartphones)
To establish a serial data connection with Unity is a little bit tricky. There are so many ways to fail and freeze the whole application if you are not doing it right.
This simple package will save you a lot of time and nerves.
– Works with Unity and Unity Pro
– Command interpreter with delegate to the desired method of your inherited class
– Create commands (scriptable objects) with one click in a new menu of the unity editor
– Thread safe serial reading and dispatching ( unity’s api can be used in events )
– Connection handling ( OnConnection event, OnConnectionLost event, connection timeout in ms)
– Less than 5 minute to setup
Demo scene is included