Using React.js to control the brightness of the ESP8266 onboard led, in this case, with JSON over MQTT.
- WIFI Development Board ESP8266 ESP-12E
- React documentation on the website.
- ArduinoJson documentation on the website.
- PubSubClient documentation on the website.
npm packages
$ cd react_app
$ npm install
$ npm start
Open the arduino sketch (Arduino IDE)
You will need to install the following Arduino libraries.