I want to make a webserver using webserver module. I uploaded an html file via Espruino WEB IDE and wanted to reference it when creating a webserver, I did it in the following way:
var code = require("Storage").readArrayBuffer('web.html');
but when I start my server and browse the page, I see this message:
WebServer error Error: Error: Could not open file : NO_PATH
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 want to make a webserver using webserver module. I uploaded an html file via Espruino WEB IDE and wanted to reference it when creating a webserver, I did it in the following way:
but when I start my server and browse the page, I see this message:
what did I do wrong?