Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1014 Bytes

findaccesspointbymacaddress.adoc

File metadata and controls

31 lines (25 loc) · 1014 Bytes

FindAccessPointByMACAddress()

FindAccessPointByMACAddress(macaddress, currentNode) => AccessPoint

Look up [class-accesspoint] object by MAC address of it or BSSID of one of radio interfaces.

If trusted node validation is enforced, currentNode should point to execution context object (instance of [class-netobj], $node in most cases). If trusted nodes are disabled (default server configuration), currentNode can be omitted or set to null.

Table 1. Parameters

macaddress

String

MAC address.

currentNode

[class-netobj]

Lookup context or null if trusted nodes validation is disabled. Optional parameter.

Return

Instance of [class-accesspoint] object or null if not found or not accessible.

Example
ap = FindAccessPointByMACAddress("AA:34:33:44:14:55");
if (ap != NULL) println(ap.name); // Prints access point name if it is found