Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By SVWliker
#26585 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!
User avatar
By igrr
#26621 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.
User avatar
By dwisatriow
#82356
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.