Sets the communications parameters for a particular module.
- Deprecated:
- Version 2.x
- Parameters
-
[in] | device | Device to modify the parameters of. |
[in] | command | Which parameters to modify (i.e. SetIPAddress, SetDHCP, SetName). |
[in] | ... | This parameter list is based off of the command parameter above. |
- Return values
-
-100XX | Socket error. Refer to the Winsock documentation for error code. |
The variable argument list is defined by the command parameter passed in. The commands can be logically OR'd together to make the sequence easier. First each command individually:
SetIPAddress - Parameters: New IP Address, New Netmask, New Gateway SetDHCP - Parameters: None SetName - Parameters: New Name
If the IP configuration (DHCP or Static) is logically OR'd with the SetName option, the parameters for the IP address must come first, and the last parameter will be the name.
References SME_ModuleByIP(), SME_SetDHCPConfig(), SME_SetName(), and SME_SetNetworkConfig().