I'd be tempted to just use ESP8266? I actually use ESP8266WiFi as the module name for the piggybacked one, so arguably ESP8266 is less confusing.
just to add here - I'll have to make sure espruino.com/ESP8266 goes to a disambiguation page :)
... Actually, what about just require('WiFi') or even require('network')? Because as you're on the ESP8266 it's obvious what you want.
I can see a time when there are other WiFi devices that run Espruino. Assuming they all use roughly the same API in a WiFi module it would probably be preferable to be able to copy/paste code and have it 'just work'?
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'd be tempted to just use ESP8266? I actually use
ESP8266WiFi
as the module name for the piggybacked one, so arguably ESP8266 is less confusing.just to add here - I'll have to make sure espruino.com/ESP8266 goes to a disambiguation page :)
... Actually, what about just
require('WiFi')
or evenrequire('network')
? Because as you're on the ESP8266 it's obvious what you want.I can see a time when there are other WiFi devices that run Espruino. Assuming they all use roughly the same API in a
WiFi
module it would probably be preferable to be able to copy/paste code and have it 'just work'?