The "undefined" looks normal, as you're printing to the console the result of wifi.ping() which doesn't return anything.
The memory hemorrhage, though... 85 jsvars per iteration!
@DrAzzy started
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.
The "undefined" looks normal, as you're printing to the console the result of wifi.ping() which doesn't return anything.
The memory hemorrhage, though... 85 jsvars per iteration!