Web Page HTML/JavaScript Listing
Here’s one solution to the IoT Capstone Project Challenge to produce a scanning sonar system. The project integrates earlier work for sonar range measurement, servo motor controls, OLED display, and Web access to a wireless sensor.
This page hosts the index.h file listing for the HTML and JavaScript code for the solution; the file is loaded with the C++ code with an #include directive when the project is compiled. The companion C++ code is here.
/* =====================================================================================
* ESP32 Sonar Radar — Azimuth/Range Sweep over WebSocket
* =====================================================================================
*/
#ifndef INDEX_H
#define INDEX_H
#include
// ----------------------------- Embedded webpage (HTML + CSS + JS) --------------------------
const char INDEX_HTML[] PROGMEM = R"rawliteral(
ESP32 Sonar Radar
ESP32 Sonar Radar — Azimuth / Range Sweep
Connecting…
AZ: —
RNG: —
)rawliteral";
#endif