relativty / wrmhl

(Archived) Simple communication between Unity3D and Arduino - by Maxim xyz.
MIT License
643 stars 63 forks source link

NullReferenceException: Object reference not set to an instance of an object #14

Open goodspeed2011 opened 6 years ago

goodspeed2011 commented 6 years ago

NullReferenceException: Object reference not set to an instance of an object wrmhlThread.writeThread (System.String dataToSend) (at Assets/WRMHL/Scripts/Thread/Common/wrmhlThread.cs:106) wrmhl.send (System.String dataToSend) (at Assets/WRMHL/Scripts/Manager/wrmhl.cs:70) wrmhlWrite.Update () (at Assets/WRMHL/Scripts/wrmhlWrite.cs:34)

snibo13 commented 6 years ago

The issue for me was that the COM port set in the wrmhlWrite script was wrong. Try manually changing it to the port your Arduino is on.