
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
HidDeviceReaderLibrary
Advanced tools
A library for reading data from HID devices(only HID raw,not for virtual keyboard mode) and parsing JSON payloads.
HidDeviceReaderLibrary
is a .NET library for reading data from USB HID devices (not supporting virtual keyboard mode) and parsing JSON data. It is suitable for scenarios where you need to communicate with HID devices and process their data.
dotnet add package HidDeviceReaderLibrary
using System;
using System.Threading;
using HidDeviceReaderLibrary;
class Program {
static async void Main()
{
// your HID device VendorID 和 ProductID
var reader = new HidDeviceReader(0x2F50, 0x0300);
reader.OnDataReceived += data =>
{
Console.WriteLine($"Received data: {data}");
};
using (var cts = new CancellationTokenSource())
{
// press Ctrl+C cancels
Console.CancelKeyPress += (s, e) => {
e.Cancel = true;
cts.Cancel();
};
await reader.StartReadingAsync(cts.Token);
Console.ReadKey();
}
}
}
FAQs
A library for reading data from HID devices(only HID raw,not for virtual keyboard mode) and parsing JSON payloads.
We found that hiddevicereaderlibrary demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.