text: var ssid = "SSID";
  var password = 'PASSWORD';
  
  // Test ESP32 WiFi event callbacks
  var wifi = require("Wifi");
  wifi.on("associated", function(details) {
  	console.log("Event-> associated: " + JSON.stringify(details));
  });
  wifi.on("connected", function(details) {
  	console.log("Event-> connected: " + JSON.stringify(details));
  });
  wifi.on("disconnected", function(details) {
  	console.log("Event-> disconnected: " + JSON.stringify(details));  
  });
  wifi.on("auth_change", function(details) {
  	console.log("Event-> auth_change: " + JSON.stringify(details));
  });
  wifi.on("dhcp_timeout", function(details) {
  	console.log("Event-> dhcp_timeout: " + JSON.stringify(details));
  });
  wifi.on("probe_recv", function(details) {
  	console.log("Event-> probe_recv: " + JSON.stringify(details));
  });
  wifi.on("sta_joined", function(details) {
  	console.log("Event-> sta_joined: " + JSON.stringify(details));
  });
  wifi.on("sta_left", function(details) {
  	console.log("Event-> sta_left: " + JSON.stringify(details));
  });
  
  wifi.stopAP();
  wifi.scan( function(ap) {
    console.log(ap);
    console.log('Press BTN1 to connect WiFi');
  });
  
  setWatch(function() {
    console.log('connecting...');
    wifi.connect(ssid, {password: password, mac:'78:24:af:c4:6f:f0'}, function() {
      console.log( "connected." );
      // console.log('Connected to Wifi.  IP address is:', wifi.getIP().ip);
      // wifi.save(); // Next reboot will auto-connect
    });
   }, BTN1, {"repeat":true,"edge":"rising","debounce":10});
  
  