The first thing I needed to do was to upload the code for the NodeMCU to connect to the WiFi, and declare in that code which are the ports I´m going to use as outputs, the serial BaudRate, and some instructions so that I can control the GPIO by simply accessing to HTTP server. So that deppending of how the website is written, it changes some predefined values.
One problem I had was that the starting code said I should load some libraries (WebServer.h, ESPmDNS.h) which I couldn´t find, so instead I uploades the ESP8266WiFi.h library, which made it work.
The Basic logic of how my HTTP server worked is like this, by declaring the amount of brightness you want for each led from 0 to 99:* http://server_ip/rgb/rrggbb/
For this project I mixed some learning I had from the Josep tutorials, mixing the bouncing ball and the sensor read in one, and addig them some color changes.
This code makes a ball that grows and changes colors deppending on the LDR sensor reading.
Web page was made with Mobirise