Skip to content

Commit

Permalink
Too many changes:
Browse files Browse the repository at this point in the history
- added FirmataSession class, this is a light version of ArduinoSession, that has better firmata message handling, doesn't use a queue. so can be used for Arduinos that constantly produce a shitload of messages without overflowing the queue.
- added System.IO.Ports.Mono, replaces the crappy Microsoft SerialPort implementation as that one uses too much cpu, threads and memory, see dotnet/runtime#2379
- extended the test program with some additional tests, like a raw dump of all incoming bytes for Arduinos that produce data autonomously. Also you can choose which serial port to use.
- code refactoring, replaced magic numbers with enums.
  • Loading branch information
jeroenwalter committed Jul 10, 2020
1 parent 91c56fb commit 03e01a2
Show file tree
Hide file tree
Showing 35 changed files with 4,180 additions and 403 deletions.
36 changes: 36 additions & 0 deletions Solid.Arduino.Core.Run/ConsoleLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,41 @@ public void Fatal(string message, params object[] args)
{
Console.WriteLine("FATAL: " + message, args);
}

public void Debug(Exception exception, string message, params object[] args)
{
Debug(message, args);
Console.WriteLine(exception);
}

public void Trace(Exception exception, string message, params object[] args)
{
Trace(message, args);
Console.WriteLine(exception);
}

public void Info(Exception exception, string message, params object[] args)
{
Info(message, args);
Console.WriteLine(exception);
}

public void Warn(Exception exception, string message, params object[] args)
{
Warn(message, args);
Console.WriteLine(exception);
}

public void Error(Exception exception, string message, params object[] args)
{
Error(message, args);
Console.WriteLine(exception);
}

public void Fatal(Exception exception, string message, params object[] args)
{
Fatal(message, args);
Console.WriteLine(exception);
}
}
}
Loading

0 comments on commit 03e01a2

Please sign in to comment.