• get you mac in : stlye

    >var wifi = require("wifi");
    =function () { [native code] }
    >wifi.getIP().mac;
    ="5c:cf:7f:05:9a:33"
    

    and wifi.scan lists the AccessPoints

    >wifi.scan(function(e,arrayOfAcessPoints) {
    :  if ( arrayOfAcessPoints != null) {
    :    for (var i=0; i<arrayOfAcessPoints.length; i++) {
    :      print("Access point: " + i + " = " + JSON.stringify(arrayOfAcessPoints[i]));
    :  }} else{print("no Access points found"); }});
    =undefined
    Access point: 0 = {"rssi":-45,"channel":1,"authMode":3,"isHidden":false,"ssid":"SBITUmts"}
    Access point: 1 = {"rssi":-63,"channel":11,"authMode":4,"isHidden":false,"ssid":"SBIT"}
    Access point: 2 = {"rssi":-85,"channel":11,"authMode":4,"isHidden":false,"ssid":"SBIT"}
    

    many thanks to those who added and fixed it.

About

Avatar for MaBe @MaBe started