Hi! Where did you get the example from? I'd have thought for the WiFi shield you'd be using the code from https://www.espruino.com/arduino-esp8266 - but there's no mention of Serial1.getSerial there.
Serial1.getSerial(); isn't a function, which is why you get the error - so I think if you just removed that line it'd 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.
Hi! Where did you get the example from? I'd have thought for the WiFi shield you'd be using the code from https://www.espruino.com/arduino-esp8266 - but there's no mention of
Serial1.getSerial
there.Serial1.getSerial();
isn't a function, which is why you get the error - so I think if you just removed that line it'd work.