Skip to main content

C2xGetDefaultMacId

Valid for: CANoe DE

Function Syntax

long C2xGetDefaultMacId(byte macId[]);

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

Example

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]);
  }
}