I have Processing (client or server) connected to USR-TCP232-T2 (server or client) connected to an Arduino and blinking onboard LED 13.
It does open up some possibilities for a nice HMI interface on Processing side to control the Arduino or any serial device; even another Processing app reading serial port!
Simple code and I will clean it up and post it.
I am now working on HTTPD client in the device sending requests to a server and updating a web page. Using WAMP. Working on web page and learning PHP. Any thoughts on this?
Arduino is sending serial data (“ON” or “OFF”) to device.
HTTPD client on device is sending data with a GET request to a server.
PHP script on server is saving data to a file.
Web brower client is reading file with a GET request and displaying status of LED.
I now have this working and can start playing with it.
Will replace GET with POST to send data from HTTPD client on device.
I am planning to revisit this project in the next couple of weeks and may share some details. I learned so much doing this especially about how web pages work!
I did not use an Arduino library other than the serial libraries (initially); this was later coded without any Arduino libraries and programmed directly into an Atmel microcontroller.
I did explore making an embedded web server and posted this here:
This was just part of the exploration of this device.
This was done with a different device to explore websockets:
Other projects that I worked on were using the Arduino + USR-TCP232-E2 (or USR-TCP232-T2) device to collect and transmit data and a web page to plot data.
I also had this working with Processing libraries; I will find those and share with community at a later time…