|
BS120x Ethernet Library 1.1.0
BS120x Ethernet Library
|
Device discovery functionality. More...
Collaboration diagram for Discovery:Functions | |
| int | Bs120xEnet_DiscoverDevices (const char *interface, Bs120xUnitConfig devices_buf[], size_t *devices_len) |
| Discovery devices over Ethernet. | |
Device discovery functionality.
| int Bs120xEnet_DiscoverDevices | ( | const char * | interface, |
| Bs120xUnitConfig | devices_buf[], | ||
| size_t * | devices_len | ||
| ) |
Discovery devices over Ethernet.
This function listens on port 58431 for 2 seconds, recording all devices which broadcast during that time.
Example usage (error handling omitted):
| [in] | interface | The network interface to use. |
| [out] | devices_buf | Buffer to hold the returned devices. |
| [in,out] | devices_len | Address of an integer containing the length of devices_buf. It will be updated to contain the number of devices discovered. |