• Is line 28 correct? It's assigning the var to itself?

    Yes - usually calling process.env creates the var on the fly, but assigning it to itself stops that, so you can then have control over what's in it. It's not needed on the newest builds - it's just to ensure the IDE can still get the board info fine on old builds.

    Good point about the host name - yes, it should be pretty easy to call wifi.setHostname.

    Also the IDE could also cope with disconnects a bit better (maybe with auto-reconnect) in which case you really could call reset - it'd just require a bit of a pause while the board reconnected to WiFi.

About

Avatar for Gordon @Gordon started