var wifi = require("Wifi");
var page = "<!DOCTYPE html>\r\n<html>\r\n<body>\r\n\r\n";
page += "<form action=\"\" method=\"get\">\r\n First name: ";
page += "<input type=\"text\" value=\"\" name=\"fname\"><br>\r\n ";
page += "Last name: <input type=\"text\" value=\"\" name=\"lname\"><br>\r\n ";
page += "<input type=\"submit\" value=\"Submit\">\r\n</form>\r\n\r\n";
page += "<p>Click on the submit button, and the input will be sent to Espruino.";
page += "</p>\r\n\r\n</body>\r\n</html>";
var b;
function onPageRequest(req, res) {
var a = url.parse(req.url, true);
res.writeHead(200, { 'Content-Type': 'text/html' });
res.end(page);
if (a.query) b = a.query;
}
require("http").createServer(onPageRequest).listen(8080);
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.
i developed most brut variant, but it working)))
var b consist all your data)