• 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'?

  • +1 to that idea, javascript's so portable, it'd be a shame to have to change your code between boards if there's no real need to.

About

Avatar for Gordon @Gordon started