Make RaspberryBoardInfo public
See original GitHub issueIs your feature request related to a problem? Please describe.
I’d like to be able to get an information about the device that my code is running on. I see that the RaspberryBoardInfo
class is internal (https://github.com/dotnet/iot/blob/54469318f33124e3455bf974e6a75167dfb831e6/src/System.Device.Gpio/System/Device/Gpio/RaspberryBoardInfo.cs).
Describe the ideal solution
Either RaspberryBoardInfo
should be public or any other way of getting information about the device model should be retrievable.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
RaspberryPi3Driver.cs
This repo includes .NET Core implementations for various IoT boards, chips, displays and PCBs. - iot/src/System.Device.
Read more >Raspberry Pi Model 3A+ Throws exception when trying to ...
using the System.Device.Gpio assembly fails on Raspberry Pi Model 3A+, same code works as expected on Raspberry Pi Model 4B.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@marcinjahn The big problem about making this type public, is that it lives in System.Device.Gpio library, which is a library that has full support and backwards compat guarantees which makes us uncomfortable to ship an API that a) only works on a RaspberryPi and b) the RaspberryPi must be running Raspbian for it to work. It is also an API that haven’t gone through the full design review process (because it is just internal) so it is not ready to be shipped in System.Device.Gpio. That said, I can propose two alternatives here:
I see, yeah if you want to manually read cpuinfo yourself then that’s fine and I guess we don’t need to take any of the two approaches I suggested above and keep the type internal only. That probably also means that we can close this issue for now. If you still think that exposing this type as-is via Iot.Device.Bindings package would be valuable, let us know and we can re-open this and consider that option. Change should be trivial.