Skip to content

nager/Nager.UdpDeviceDiscovery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nager.UdpDeviceDiscovery

Discover devices on the network via an udp broadcast

nuget

The package is available on nuget

PM> install-package Nager.UdpDeviceDiscovery

Examples

MOXA NPort discovery

var helloPackage = new byte[] { 0x01, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00 };

var deviceDetector = new UdpDeviceDetector();
var packages = await deviceDetector.GetDeviceInfoPackagesAsync(4800, helloPackage, receiveTimeout: 2000);