eth32cfg_get_config

int eth32cfg_get_config(eth32cfg handle, int index, eth32cfg_data_t *dataptr);

Summary

This function is used to access the device information and configuration data for each device that was found using eth32cfg_discover_ip or eth32cfg_query.

Parameters

  • handle - The value returned by eth32cfg_discover_ip or eth32cfg_query.

  • index - The index of the result to return.

  • dataptr - Pointer to the structure to be filled in the the device information.

Return Value

This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes.

Remarks

The index is zero-based, which means it can range from zero up to one less than the number of available results.

See Also

eth32cfg_data_t Structure, eth32cfg_discover_ip, eth32cfg_query