Retrieve's the current Sealevel I/O module's IP address, netmask, and gateway as strings.
- Parameters
-
[in] | handle | Valid handle returned by SME_Initialize(). |
[out] | ipAddress | |
[out] | netmask | |
[out] | gateway | |
- Return values
-
0 | Successful completion. |
-1 | Invalid SME_Initialize handle. |
-2 | No module selected. Call SME_SearchForModules() first. |
The currently selected Sealevel I/O module's IP address, netmask, and gateway will be placed in the parameter buffers in standard IP form (i.e. "x.x.x.x").
- Note
- If any parameter is NULL, that parameter is ignored. For instance, to retrieve only the current module's netmask, supply a valid string pointer for the second parameter, and NULL for the first and third parameters.
- Warning
- The supplied string buffers should each be allocated with at least 16 bytes of data before calling GetIPAddress().
Referenced by CCEthernet::find_devices().