jeroenwalter / Arduino

C# .NET - Arduino library supporting simultaneous serial ASCII, Firmata and I2C communication
https://solidsoils.github.io/Arduino/index.html
BSD 2-Clause "Simplified" License
1 stars 3 forks source link

Add logging to ArduinoSession to replace Debug.WriteLine statements. #19

Open jeroenwalter opened 5 years ago

jeroenwalter commented 5 years ago

The Debug.WriteLine statements have a negative impact on the performance. They cause messages to be handled seconds after arrival if you have serious load on the arduino. I noticed this when with an arduino that sent 20 sysex messages per second.

jeroenwalter commented 5 years ago

I've added the ILogger interface already in several other classes.