Hi all,
has anyone here experience with a fast & clean web library capable of extracting variables from a GET request. Maybe even simple password and encryption (one can ask, right?) There seem to be several options and I hoped to get some heads-up before trying them all. So if any of you have some experience with Arduino based webservers, please share!
more details :
The setup is (relatively) simple. It is a green-house, gardening and aquaponics system. So nothing time sensitive. But everything is out-doors and powered on constantly.
For the moment there are 2 Arduino Mega's connected to several sensors, actuators, lights and valves. The idea is to grow that number to about 6 or 7 arduino's. There is no WIFI, everything runs on and over PoE and 10mbps will be fast enough for this application.
All Mega's have an ethernet shield and are powered by the PoE router. There is also a Raspberry Pi that checks the Mega's every 5 minutes, Logs their data and generates a nice php website for controling them. The idea is to sent a GET request from the PI to the Mega's if something needs to be done.
regarding "extracting variables" - not a library but an example Sketch:
base idea is to process POST parameters, but the same can be used for GET parameters also.
BTW: If you have data to be transmitted to the server, you should use POST imho.
hey noiasca, thanks for the reply, you are right. A post would have been an option as well...
But in my case every Arduino has a "web-page" showing it's data and you can sent it a GET request to toggle a few parameters. I use a web-page because I can read it from every device that is connected to the local network. It is ideal for debugging and monitoring.
there is no But
when you change the transmission method it your webpage to POST you just need some lines of code to process that POST data. This will work for a webserver like shown in my link.