Hi @Mathis, I have two NodeMCU boards. I think these are simply ESP8266 mounted on a larger PCB. There are a few differences from Arduino, but for me nothing to stop it working with Processing. I’ve found the most significant difference is that the ESP program does not reset when Processing (or anything on the PC) opens the port. So I never see any prints from the setup() function. This code prints everything the ESP sends. I’m not using serialEvent.
import processing.serial.*;
Serial myPort;
int val;
void setup() {
frameRate(40);
String portName = "COM4";
myPort = new Serial(this, portName, 9600);
}
void draw() {
int val;
while (myPort.available() > 0) {
val = myPort.read();
print((char) val);
}
}
Output:
IP: 192.168.1.135, Temp: = 20 *C, Humid: = 74 %, Temps: = 20, 20
IP: 192.168.1.135, Temp: = 20 *C, Humid: = 74 %, Temps: = 20, 20
IP: 192.168.1.135, Temp: = 20 *C, Humid: = 74 %, Temps: = 20, 20