Skip to content

Instantly share code, notes, and snippets.

@Antoinebr
Last active July 7, 2018 16:22
Show Gist options
  • Save Antoinebr/b79cb538a3fbc04282ab9e7bd02990ec to your computer and use it in GitHub Desktop.
Save Antoinebr/b79cb538a3fbc04282ab9e7bd02990ec to your computer and use it in GitHub Desktop.
espruino-wifi.js
const wifi = require("Wifi");
const http = require("http");
wifi.setHostname("antoine-espruino-3");
wifi.connect("potter-club", {password:"Cdfdfflllllffddssddf"}, err => {
if (err) throw err;
console.log("WiFi connected.", wifi.getIP() );
});
wifi.stopAP();
wifi.save();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment