Im collecting the data, and using the pico as a sever.
---------------------Code
// ESP8266 WiFi v25
var WIFI_NAME = "Temp-Student";
var WIFI_PASS = "TempStu1";
Serial2.setup(115200, { rx: A3, tx : A2 });
var wifi = require("ESP8266WiFi_0v25").connect(Serial2, function(err) {
if (err) throw err;
wifi.reset(function(err) {
if (err) throw err;
console.log("Connecting to WiFi");
wifi.connect(WIFI_NAME, WIFI_PASS, function(err) {
if (err) throw err;
console.log("Connected");
// print IP address
wifi.getIP(console.log);
// Create a server
require("http").createServer(pageHandler).listen(80);
});
});
});
--------------------end of code
I want to have the light go on a graph.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Im collecting the data, and using the pico as a sever.
---------------------Code
// ESP8266 WiFi v25
var WIFI_NAME = "Temp-Student";
var WIFI_PASS = "TempStu1";
Serial2.setup(115200, { rx: A3, tx : A2 });
var wifi = require("ESP8266WiFi_0v25").connect(Serial2, function(err) {
if (err) throw err;
wifi.reset(function(err) {
});
});
--------------------end of code
I want to have the light go on a graph.
1 Attachment