I want to send signal to an arduino mega (call it mega 1), which is wirelessly connected to another arduino mega (mega 2) using ESP8266. The mega 2 is connected to the computer. I want to send logitech gamepad F310 analog values from mega 2 to mega 1. I can take the input from gamepad using g4p & game control plus library in processing. But I can't find a way to access all the serial ports of arduino using processing. Please help me with this.