You are reading a single comment by @fanThomas and its replies. Click here to read the full conversation.
  • I tried this on a ESP8266 where it is working with a ip address. In the docs it states the parameter should be 'hostname', but when I try with a hostname I get an error:

    w.ping('google.com', (details) => { console.log(details) });
    Uncaught Error: Not a valid IP address.
    

    When I try this on a ESP32 I get:

    w=require('Wifi')
    =function () { [native code] }
    >w.ping('212.51.158.12', (details) => { console.log(details) });
    Uncaught Error: Function "ping" not found!
    

    Both ESP's are running espruino 2v00

    The ping method may work for me when it would be available on both platforms however it's somewhat tricky, because you can not decide how many pings are issued.

    Where could I find the source code of the 'net' Library?

About

Avatar for fanThomas @fanThomas started