Friend Sub SetConfig(config_data As eth32cfg_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.
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 EthErrorConfigReject error. If no response is received from the device, the method will raise the EthErrorConfigNoAck error after a short timeout.