Hello! I have installed Visual Studio for Mac and I am building a Xamarin app for Mac. Unfortunately, I couldn't find any documentation on USB Serial Port for Xamarin Mac. I do know that the <System.IO.Ports> library is used for .NET, but it seems it is not available for Mac applications on Xamarin.
Could you please help me with finding a way to read from Serial USB in my Xamarin app on Mac?
The macOS APIs in question are in IOKit and are not bound for C#.
They are also a bit non-trivial to use. There are a number of libraries that provider nicer APIs, such as
https://github.com/armadsen/ORSSerialPort
You may want to pick one and bind it into C# using a binding project.
Answers
The macOS APIs in question are in IOKit and are not bound for C#.
They are also a bit non-trivial to use. There are a number of libraries that provider nicer APIs, such as
https://github.com/armadsen/ORSSerialPort
You may want to pick one and bind it into C# using a binding project.
@ChrisHamons Thank you! I had seen the IOKit and it seemed very messy for me, so I wanted to confirm if this was indeed the case