I have a relatively simple Winform application used to communicate with an Arduino via USB to Serial. I would like to make it as universal as possible, using Xamarin Forms.
My problem is that it seems there is no way to do this for both Android and UWP (my priorities, IoS "maybe" in the future). Googling around I found there is a System.IO.Ports.SerialPort
documented in Xamarin documentation, but I did not find any way to add this library to either Droid and UWP projects.
If I need to, I guess I could write an Interface and have different implementations depending on which project is compiled, but I would love to find some examples.
I would also like to use WiFi as serial instead of USB and let the user choose which way he wants to link to the Arduino. All of this is no big deal in Winform, so I am quite surprised this looks close to be impossible on Xamarin!
Thanks for any help and pointers in the right direction. I would hate to have to abandon this project, but in the same time I cannot spend a lot of time on something which does not seems to be implemented (as of now).