vendredi 22 janvier 2016

Creating a Web Server that can accept Get and Post requests

I need to create a web server (in the cloud) that can run a webpage and accept post requests and send back data when a get request is made.

My specific project is making a home automation system (just in testing, so security isn't an issue), where the post request is made to the server with the data (ie. turn light A on). An Arduino will then make a get request about every 10 seconds to the server to get the data about what devices should be on or off. I am doing it this way because I need to avoid having the Arduino run the server and use port forwarding.

Any help is appreciated, and if you have another idea about how I could do this it would be great.




Aucun commentaire:

Enregistrer un commentaire