Please use our new kiwrious-unity-package
This project enables communication between kiwrious sensors and unity editor.
Project made with unity 2018.2.11f1. You may use higher versions but avoid opening this on lower version.
You can use this project in two different ways
- Clone this entire project and build your idea on top of this demo scene
- Download
kiwrious readerunity package and import it to your own project
- Clone this repository and open with
Unity 2018.2.11f1. Go to player settings --> other settings section- Set Api Compatibility Level to
.NET 4.X - Open Kiwrious > Scenes >
KIwrious Sensors Demo.unity - Run the project, Plugin any kiwrious sensor and observe readings
- Add
Serial Readerprefab fromAssets/Kiwrious/Prefabs
KiwriousSerialReader.instance.StartSerialReader();KiwriousSerialReader.instance.StopSerialReader();- Get raw value
KiwriousSerialReader.instance.sensorRawDataAll sensor values are processed as float values.
KiwriousSerialReader.instance.sensorData[sensorName].values[propertyName]; KiwriousSerialReader.instance.sensorData["EC"].values["conductivity"]
KiwriousSerialReader.instance.sensorData["CLIMATE"].values["humidity"]
KiwriousSerialReader.instance.sensorData["CLIMATE"].values["temperature"]
KiwriousSerialReader.instance.sensorData["LIGHT"].values["uv"]
KiwriousSerialReader.instance.sensorData["LIGHT"].values["lux"]
KiwriousSerialReader.instance.sensorData["COLOR"].values["color_h"]
KiwriousSerialReader.instance.sensorData["COLOR"].values["color_s"]
KiwriousSerialReader.instance.sensorData["COLOR"].values["color_v"]
KiwriousSerialReader.instance.sensorData["VOC"].values["voc"]
KiwriousSerialReader.instance.sensorData["THERMAL2"].values["d_temperature"]
KiwriousSerialReader.instance.sensorData["THERMAL2"].values["a_temperature"]
KiwriousSerialReader.instance.sensorData["CARDIO"].values["heart_rate"]- PC Standalone
- Mac Standalone
- Android
The type or namespace name
Ports' does not exist in the namespaceSystem.IO'. Are you missing an assembly reference?
Go to Edit > Project Settings > Player > Optimization > Api Compatibility Level
Set this to .Net 2.X or .NET 4.X (not subset)