-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What's the meaning of error code in the Exception? #2372
Comments
The error comes from the underlying native library and is propagated to the exception. I assume you are using According to the
This means that they use the In your case:
HTH |
Thank you very much !!! You help me a lot ^ ^ I think its too difficult to control these pin...orz rather than I throught... Maybe Raspberry Pi is easier according to the microsoft guide, but I buy a Niche Brand board because cheap... ( its seller suggest me to edit and compile the source code of the board to config its gpio pins... cry) |
Great to hear that, thanks for the feedback. What are your difficulties now? Managing the GPIOs should not be hard at all! Please remember that, although the pins looks all the same, you should always take a look at the manufacturer's documentation because not all the pins provides the same features (pull-up, notifications, etc.) |
Yes , I don't care how GetLastWin32Error works, as you said, Knowning the meaning (decode) of error number is enough for this situation ^ ^ The biggest difficulty may come from the unique design of the board, it seems not to be a general linux os implentment ( I heard from its manufacturer ). I have two plan in my winter-holiday to solve it:
The documentation is saying some thing hard to do... I only learned c# yet.. |
Sounds like a great plan for the holiday! Possibly do not rely on the For very simple tasks, or for tasks that requires real-time, you should consider using a microcontroller like a board based on ESP32. These devices are normally programmed with Arduino but you can use https://nanoframework.net/ to use .NET and C# there. But read carefully the limitations before. It's up to your pleasure of programming, hacking and learning :-) |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
Error while requesting event listener for pin 14, error code: 517
Error while requesting event listener for pin 0, error code: 22
Error while reading value from pin: 12, error: 1
I can't find the reason or details of the error code in anywhere on the internet...What does the '517', '22' , '1' mean , and how can I fix it ?
https://learn.microsoft.com/zh-cn/dotnet/iot/
https://www.nuget.org/packages/System.Device.Gpio
The text was updated successfully, but these errors were encountered: