Sample .NET MAUI project for use with a Brady RFID reader. More info: https://nordicid.github.io/nurapi_docs_website/articles/introduction.html
Permission handling (Helpers/PermissionHelper.cs)
Platform specific initialization required by NurApi
Required NurApi Nugets
Toast/snackbar (from Maui communitytoolkit) for status messages.(Helpers/Utilities.cs)
Searches readers from various sources (Bluetooth, local network, USB..)
The user selects the reader from the list of found devices
Last used connection saved in settings for auto connect when app start.
Connecting/disconnecting handling when the application is active/inactive
TxLevel adjust using 'Slider'
Sound generation while reading
Reader trigger for start/stop inventory streaming.
Share inventory results as *.csv
Read barcode and show it in display.
Success beep generated.
Reader trigger for start/stop
(Helpers/ReadBarcode.cs)
- Install USB Device Connectivity
Tools -> Get Tools and Features -> Individual Components -> USB Device Connectivity
- Install Android SDK Manager USB driver
Tools -> Android -> Android SDK Manager -> Tools -> Extras -> Google USB Driver
- Restart VS
Now the run drop-down box should have an Android Local Devices
- Copy
NET_MAUI_RFID_App.zip
from Releases in to your Windows PCDocuments/Visual Studio 2022/Templates/ProjectTemplates
folder. - Open Visual Studio 2022
- Create new project
- Select template ".NET MAUI RFID App" (use search key: "RFID")
- After project is created, go to
Tools-->NuGet Package Manager-->Package Manage Console
- Type the console command
dotnet restore
and hit enter. - After packets are restored, close PM console.
- Modify "MAUI Shared" property from your app properties.
- Application Title
- Application ID use format like
com.<mycompany>.<appname>
- Application Display Version. Semantic versioning recommended (major.minor.patch)
- Application version (start from 1)
- Targeting to Android: Open
AndroidManifest.xml
and edit the Application name, Package name, Version information, etc. - Setup app icon, app theme etc..
- Build and run on a physical device. Ensure the Android device is in developer mode and connect to the PC via USB.
- Happy coding!