void SetConfig(eth32cfg_data config_data)
This method is used to store new configuration settings into an ETH32 device. The device's Allow Config switch must be set to Yes, or the new configuration will be rejected.
This method does not return a value. If any error occurs, an Eth32Exception will be raised.
The MAC address and serial number information members of the eth32cfg_data Structure identify which device is to be configured. If those members are not set correctly, the device will simply ignore the settings, or worst-case, if they match a different device you were not intending to configure, that device will accept the new configuration. Therefore, in most cases, although it is not required, it is best to take the eth32cfg_data Structure from the Result Property, modify as needed, and then provide that to this method.
Under normal circumstances, the device will accept the configuration and return a confirmation packet, which will cause the method to immediately return without raising any errors. If the device's Allow Config switch is set to No, it will return a rejection packet, which will cause the method to raise the EthError.ConfigReject error. If no response is received from the device, the method will raise the EthError.ConfigNoAck error after a short timeout.