ESP32 HTTP web server: Serving external JavaScript file

In this tutorial we will learn how to serve an external JavaScript file to be referenced by a HTML file, using the ESP32. The ESP32 will be running the Arduino core and the HTTP async web server libraries. The tests were performed using a DFRobot’s ESP32 module integrated in a ESP32 development board. Introduction In this tutorial we will …

ESP32 Arduino web server: Receiving data from JavaScript websocket client

In this tutorial we will check how to setup a HTTP web server on the ESP32 that will have a websocket endpoint and that will serve a HTML file containing JavaScript code to establish a websocket connection to the server. The tests were performed using a DFRobot’s ESP32 module integrated in a ESP32 development board. Introduction In this …

ESP32 Arduino web server: Sending data to JavaScript client via websocket

In this tutorial we will check how to setup a HTTP web server on the ESP32, which will have a websocket endpoint and will serve a HTML page. The HTML page will run a simple JavaScript application that will connect to the server using websockets and periodically receive simulated temperature measurements from the server. The …

ESP32 JavaScript Espruino: String interpolation

In this tutorial we will check how to perform string interpolation in Espruino running on the ESP32. The tests were performed using a DFRobot’s ESP32 module integrated in a ESP32 development board. Introduction In this tutorial we will check how to perform string interpolation in Espruino running on the ESP32. It's important to mention that string interpolation is a …

ESP32 Espruino: Adding properties to previously created object

In this tutorial we will check how to add properties to a previously created object using Espruino on the ESP32. The tests were performed using a DFRobot’s ESP32 module integrated in a ESP32 development board.   Introduction In this tutorial we will check how to add properties to a previously created object using Espruino on the ESP32.   Recall that Espruino is a JavaScript interpreter, so we can use many of the language features on our ESP32.   …