The ESP8266 drivers are not available as javascript modules. They are meant to be available as internal modules. At the moment they are not compiled into the current firmware. You will need to compile it yourself.
To compile it yourself, there is a nice step by step tutorial for building it on github where you will also find the source code:
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.
Hi Charles,
The ESP8266 drivers are not available as javascript modules. They are meant to be available as internal modules. At the moment they are not compiled into the current firmware. You will need to compile it yourself.
To compile it yourself, there is a nice step by step tutorial for building it on github where you will also find the source code:
https://github.com/espruino/Espruino
To add the ESP8266 drivers you will need to edit the
Makefile
and change two lines:Change:
USE_CC3000=1
#USE_ESP8266=1
to:
#USE_CC3000=1
USE_ESP8266=1
To include the drivers and remove the drivers for CC3000 (another wifi module).
After that is done, you will need to flash your espruino from within the IDE with the advanced option and the new firmware.
I've done this just a few days ago to test a few things, you can use this link to get my binary:
http://sammelsurium.hpm12.de/espruino_1v72_espruino_1r3.bin for flashing
I did not get them to work yet, but its also currently stated that development for the ESP is in progress and not yet fully working.
Cheers,
Mario