.NET MAUI Sample
The .NET MAUI Sample, designed for integrating RFID technology with Brady RFID readers. Key features include permission management, platform-specific initialization, essential NurApi NuGets for functionality integration. It supports discovering RFID readers across multiple channels, connects with selected devices with auto-reconnect features, and offers specialized views for inventory management and barcode reading, complete with data sharing options. Installation steps are provided for Android devices. This template is an excellent resource for developers seeking to explore RFID applications within the .NET MAUI framework.
Basic Features
Permission Handling
- File:
Helpers/PermissionHelper.cs
- Manages application permissions, a crucial step for ensuring smooth operation across different platforms and devices.
Platform-Specific Initialization
- Required by NurApi for optimal performance and compatibility.
Required NurApi NuGets
- Essential packages for integrating NurApi functionalities within the application.
Toast/Snackbar Notifications
- File:
Helpers/Utilities.cs
- Utilizes the Maui community toolkit for displaying status messages, enhancing user experience with feedback mechanisms.
Reader Discovery
- File:
Helpers/ReaderDiscovery.cs
- Discovers RFID readers over various channels like Bluetooth, local network, and USB, offering flexibility in reader setup and management.
Reader Connection
- File:
Helpers/ReaderConnect.cs
- Enables user selection from discovered devices, supports automatic reconnection to the last used device upon application start, and handles connecting/disconnecting events based on application state.
Sample View: Inventory
- Features include TxLevel adjustment with a slider, sound feedback during reading, and reader triggers for inventory streaming.
- Offers functionality to share inventory results as a .csv file, facilitating data management and analysis.
Sample View: Barcode
- File:
Helpers/ReadBarcode.cs
- Supports reading barcodes and displaying results, accompanied by a success beep. Similar to inventory management, it allows start/stop triggers for reading operations.
Installation and Debugging
Android Physical Device
- Install USB Device Connectivity
- Navigate to
Tools -> Get Tools and Features -> Individual Components -> USB Device Connectivity
.
- Navigate to
- Install Android SDK Manager USB Driver
- Go to
Tools -> Android -> Android SDK Manager -> Tools -> Extras -> Google USB Driver
.
- Go to
- Restart Visual Studio
- Necessary to ensure that the Android local devices are recognized by the development environment, enabling debugging and testing on physical devices.
The MauiNurAppTemplate serves as a robust starting point for developers aiming to integrate RFID technology into their .NET MAUI applications. By providing essential functionalities and simplifying complex operations, it paves the way for innovative RFID solutions across various industries.