Discovering empegs - rlipscombe/nemplode GitHub Wiki

To discover empegs connected over Ethernet, simply broadcast a UDP packet containing a single 0x3F byte (an ASCII question mark). This must be sent to port 8300. Any empeg on the network will respond by sending a packet back (also to port 8300) containing a response.

The response (in ASCII) will look something like this:

id=12345678\n
name=my-empeg

That is: it's two fields (id and name), separated by LF (0x0A), formatted as key=value.

id contains the serial number of the empeg. name contains the name of the empeg, as set in /empeg/var/config.ini.

See this gist for a snippet of code demonstrating this.