The board seems be working correctly when I run code in the left panel.
However, require('EspruinoWiFi') throws
ERROR: SD card must be setup with E.connectSDCard first
WARNING: Module "EspruinoWiFi" not found
And same result with MQTT. So I try to clear flash.
>reset()
=undefined
>save()
=undefined
Erasing Flash...
Writing.......
Compressed 114368 bytes to 4278
Checking...
Done!
ERROR: SD card must be setup with E.connectSDCard first
WARNING: Module "MQTT" not found
ERROR: SD card must be setup with E.connectSDCard first
WARNING: Module "EspruinoWiFi" not found
Uncaught Error: Field or method "create" does not already exist, and can't create it on undefined
at line 11 col 18
var client = mqtt.create(MQTT_HOST);
The last line, var client = mqtt.create(MQTT_HOST); is some code from my project. I'm not able to clear it from flash.
Also tried E.setBootCode(), then save, same result. Also tried E.setBootCode(), reset, save, still no luck.
Decided to try a fresh update. Holding down BTN1, plug in power, see yellow LED for 2s, see red LED flash, then no LED's lit. Can't get into bootloader mode it seems. Also not finding documentation for yellow LED.
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'm working with an Espruino WiFi.
The board seems be working correctly when I run code in the left panel.
However,
require('EspruinoWiFi')
throwsAnd same result with MQTT. So I try to clear flash.
The last line,
var client = mqtt.create(MQTT_HOST);
is some code from my project. I'm not able to clear it from flash.Also tried
E.setBootCode()
, then save, same result. Also triedE.setBootCode()
, reset, save, still no luck.Decided to try a fresh update. Holding down BTN1, plug in power, see yellow LED for 2s, see red LED flash, then no LED's lit. Can't get into bootloader mode it seems. Also not finding documentation for yellow LED.