wifi.on ('connected', function () {
console.log ('Connected to Wifi. IP address is:', wifi.getIP () .ip);
setTimeout (start server, 400);
});
I do not think that 'storage.write ("1.css", ...) is fast enough before the server starts, so I used a delay, maybe it should be different on your system.
I tried with 'setTimeout (StartServer, 400);' and got this picture on screen.
Hope it will take you on.
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 do not think that 'storage.write ("1.css", ...) is fast enough before the server starts, so I used a delay, maybe it should be different on your system.
I tried with 'setTimeout (StartServer, 400);' and got this picture on screen.
Hope it will take you on.
1 Attachment