-->
Page 1 of 2

Getting data for Processing sketch from ESP8266

PostPosted: Thu Aug 20, 2015 10:25 am
by SVWliker
Hi everybody!

I have a Processing sketch getting the necessary data from a sensor conntected via serial port. Now I want to build a wireless system. So what could be the best solution?

The sensor could be connected to ESP8266 and then send the data via WiFi to my Computer. But how does it work? Can I create something like a "virtual serial port" for the processing software? Or can the processing software work with data from the internet?


Thanks for your help!

Re: Getting data for Processing sketch from ESP8266

PostPosted: Thu Aug 20, 2015 4:16 pm
by igrr
You can set up a TCP server on your sensor (see WiFiServer example of the ESP8266WiFi library), and then connect to it using a TCP client in Processing.
Here's a tutorial about networking in Processing environment: https://processing.org/tutorials/network/

If you want to keep the Processing side of things intact (i.e. work through serial port), google for something like "virtual tcp serial port" for you OS.

Re: Getting data for Processing sketch from ESP8266

PostPosted: Fri May 17, 2019 11:31 am
by dwisatriow
igrr wrote:You can set up a TCP server on your sensor (see WiFiServer example of the ESP8266WiFi library), and then connect to it using a TCP client in Processing.
Here's a tutorial about networking in Processing environment: https://processing.org/tutorials/network/

If you want to keep the Processing side of things intact (i.e. work through serial port), google for something like "virtual tcp serial port" for you OS.


Hi igrr, does WiFiServer that you mean is WiFiAccessPoint or WiFiHTTPSServer? Since I can't find WiFiServer. Thanks.

Re: Getting data for Processing sketch from ESP8266

PostPosted: Sat May 18, 2019 4:42 am
by schufti