Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
15 lines (14 sloc) 403 Bytes
// Connect to an access point and get a web page.
//
var ssid="guest";
var password="kolbanguest";
var wifi=require("Wifi");
wifi.connect(ssid, {password: password}, function() {
console.log("Connected to access point, getting web page");
var http = require("http");
http.get("https://httpbin.org/ip", function(res) {
res.on('data', function(data) {
console.log(data);
});
});
});
You can’t perform that action at this time.