Back to Sealevel      

int SME_GetMACAddress ( SME_HANDLE  handle,
char *  address 
)

Retrieve the currently selected Sealevel I/O module's hardware MAC address.

Parameters:
[in] handle Valid handle returned by SME_Initialize().
[out] address Buffer in which to store the MAC address.
Return values:
0 Successful completion.
-1 Invalid SME_Initialize handle.
-2 Invalid module selected. Call SME_SearchForModules() first.
-3 Address parameter may not be zero (null).
The returned string will be in the format of "XX-XX-XX-XX-XX-XX" where the XX's represent two-byte hexadecimal representations of the six MAC address octets.

Warning:
The buffer to store the MAC address much contain at least 18 bytes of allocated space.

 
 
Generated on 18 Sep 2007.