Thanks so much for this, I can confirm that it works on the WeMosD1 board, see pic of board (NOTE: I couldn't get NodeMcu working on this board!).
esptool.py --port /dev/tty.wchusbserial1410 --baud 9600 write_flash --flash_freq 80m --flash_mode qio --flash_size 32m 0x0000 "boot_v1.4(b1).bin" 0x1000 espruino_esp8266_user1.bin 0x37E000 blank.bin
var wifi = require("Wifi"); var http = require("http"); wifi.connect("ssid",{password:"pwd"},function(err){ console.log("connected: err:", err, ", IP:", wifi.getIP()); http.createServer(function(req, res){ res.writeHead(200, {'Content-Type': 'text/html'}); res.write('Hello World'); res.end(); }).listen(80); });
1 Attachment
@davem started
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.
Thanks so much for this, I can confirm that it works on the WeMosD1 board, see pic of board (NOTE: I couldn't get NodeMcu working on this board!).
1 Attachment