Ok, it's because you're using Serial2, not Serial1. You did change it in the .connect call though.
Serial2
Serial1
.connect
Try:
Serial1.setup(9600, { rx: B6, tx : B7 }); //^^^^ this one var wifi = require("ESP8266WiFi").connect(Serial1, function(err) { ...
@Gordon 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.
Ok, it's because you're using
Serial2
, notSerial1
. You did change it in the.connect
call though.Try: