Replies: 3 comments 7 replies
-
Steve Troughton-Smith shows how to create a full-blown Mac app that can also be controlled by a Catalyst app (using Swift) and apparently it used to be possible to access native bundles from Xamarin Forms, so it should be possible to access the serial port from native code and in turn access that from .Net. |
Beta Was this translation helpful? Give feedback.
-
Is |
Beta Was this translation helpful? Give feedback.
-
Here is another solution with a similar syntax as in MS library |
Beta Was this translation helpful? Give feedback.
-
Since .NET 6 was supposed to bring the cross-platform API under one hood, I would like to ask whether SerialPort was also considered for that. When moving from a Windows only app on WPF to .NET Maui I was kind of expecting to just use System.IO.Ports.SerialPort for all my serial port needs, however it seems to not be the case.
With Windows it works well, on Android I had to use UsbManager from Android.Hardware.Usb.UsbManager, but now I would like to also run my app on MacOS. I once tried porting my Winforms app to MacOS using mono and the System.IO.Ports.SerialPort worked out of the box so with .Net Maui II expected the same. However, SerialPort is not supported on MacCatalyst.
How would I access the Serial Ports on a Mac with my .NET MAUI app? Is that at all possible?
Beta Was this translation helpful? Give feedback.
All reactions