Skip to main content

Documentation Index

Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

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