I'm new to processing but I've already done a search in the forum. I still have some questions for you.
I know the topic was already discussed here but I can't find a precise answer.
What I've done. I created a sample sketch in Processing and exported it as an applet. Then I put the files into an embedded board which runs a webserver (lighttpd under debian). Thus, when I reach my webserver I can see the sketch in action in a web page.
What I want to do. I want to interact with the server side. I know the applet runs on client side (that is inside my browser) and of course I may use a TCP connection (or HTTP requests) to retrieve and send data. Anyway I'm wondering if there is a better way to do this.
What is the goal. The embedded platform that hosts the webserver could be a SBC (single board computer) or even a light environment like Arudino. Both have inputs and outputs and I'm interested to implement a web-based remote control panel. Processing is quite good to do this and Processing.js should grant the access also with smartphones. But the lack is just the connection with the server.
I'm not talking about dynamic pages! The source code will be hard-coded. I want to change some variables contents only.
In conclusion, do you recommend Processing for this application? If yes: what's the best way to exchange data with the server? If no: may you suggest me something else?
Thanks in advance and sorry for my English, it's not my primary language.
Marco