Web Server code on RPi
Posted: Wed Aug 17, 2016 12:15 am
I have a mini project to control a shade wirelessly. Its main components is a RPi as a master controller, in addition to a nRF24LE1 (wireless chip by Nordic ) as a slave. I have already finished the firmware to send a cmd from RPi to nRF24LE1 using console. Now I am planning to use a web based application running on Pi, (I am using NGINX for now), for sending the command. I have no experience in web server programming or any php/cgi scripting language, Here it comes my question??? The firmware running on Pi is a continuous loop, has to be running all the time like a daemon or background code, and when it receives an input like “UP” or “DN” it should send a cmd to slave. Any idea how to implement the web server part? Is NGINX ok, or use something else like Apache or even LightHTTpd? How about php or html code? And lastly how to manage the cgi executable code to act like a daemon running continuous in the background? My main master code in RPi is written in C++, Not Perl Nor Python! Thanks for any help!