Getting Started
#1349
Replies: 1 comment 4 replies
-
You can't just copy & paste it, the bleManager doesn't get set. You have to inject or resolve it using dependency injection. You can use if you don't know how to use dependency injection. var ble = Shiny.Hosting.Host.GetService<IBleManager>(); |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys, im trying to explore the word of BLE and Bluetooth,
and i want to realize a basic MAUI application which has just one button and when the user press the button the application scan the near Bluetooth devices and show them in a list in the application.
I think i have setted everything that should be setted (Permissions) and downloaded everything correctly.
So I find this amazing Library and take a look at the documentation:
I copied this code on my application but as i was thinking it throw an exception:
System.NullReferenceException: 'Object reference not set to an instance of an object.'
How can i resolve this little problem?
Beta Was this translation helpful? Give feedback.
All reactions