Adapt my webapp and code to send an extra value to my ESP8266.

Job ID: 31027279

Budget: $10 – $30 AUD

I have a webapp used to interface with an ESP8266 which controls an aquarium LED. This webapp was coded by myself with the assitance of another freelancer some months ago.

It uses websockets and quite a bit of Javascript / JSON to create a routine which is uploaded to the ESP8266 and is executed automatically daily. The webapp is a UI to allow the user to easily program this routine.

Currently the webapp is designed to create the program for 4 LED's. The program is uploaded to the ESP8266 and executed on the relevant pins via PWM.

Your job is simple; I need the existing code adapted to control an extra LED, so a total of 5 LED's from the original 4. It will be possibly for you to do this easily based off the existing code - you will just need to add the variables for the new LED, change some variable names in accordance with new LED colours and adapt the ESP's code so that it knows what to do with the new data relevant to the 5th led.
Related categories: JavaScript C++ Programming HTML5 Arduino JSON