C2xGetDefaultMacId
Valid for: CANoe DEFunction Syntax
Description
This function reads the MAC-ID of a WLAN interface.Parameters
- macId: Destination array for the read MAC-ID with six elements.
Return Values
- 0: Success
- ≠0: Error code
long C2xGetDefaultMacId(byte macId[]);
on start
{
byte macId[6];
if (C2xGetDefaultMacId(macId) == 0)
{
write("MAC ID is %.2X:%.2X:%.2X:%.2X:%.2X:%.2X:", macId[0], macId[1], macId[2], macId[3], macId[4], macId[5]);
}
}