iot: PlatformNotSupportedException is raised when access PinValue
I’m getting PlatformNotSupportedException when access PinValue:
var value = PinValue.High;
System.PlatformNotSupportedException: Operation is not supported on this platform. at System.Device.Gpio.PinValue.get_High()
Why does it happen? PinValue doesn’t have anything platform specific. I’m running the code on Mac.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (10 by maintainers)
@Ellerbach : I have no mac, so I cannot verify, but I do believe the issue is solved with the removal of the platform dependent assemblies. The main problem was that for any unsupported OS, an assembly was used that consisted only of PNSE. Applications such as the one mentioned above, with an Arduino on Mac or Windows are possible now (PR pending)