Also: ESP-8266
Features:
Modes:
Add https://dl.espressif.com/dl/package_esp32_index.json under File / Preferences / Additional boards manager. Then install from Tools / Boards: / Boards Manager (search for ESP32).
See also:
debug_tool = esp-prog debug_init_break = tbreak setup
8. main.cpp should have the standard blink code or something else simple.
9. Select the correct device from the status line at the very bottom. You
may also need to adjust the com port. For some reason, the device is not
correctly identified.
Serial monitor may be opened from the status line. Select the port of the
ESP-32 (the Silicon Labs one) but this will cause the debugger to lose control
if it's running. You must open the monitor first, then start debugging.
#include "WiFi.h" #include "ESPAsyncWebServer.h" const char *ssid = "MyESP32AP"; const char *password = "testpassword"; AsyncWebServer server(80); void setup(){ Serial.begin(115200); WiFi.softAP(ssid, password); Serial.println(); Serial.print("IP address: "); Serial.println(WiFi.softAPIP()); server.on("/hello", HTTP_GET, [](AsyncWebServerRequest *request){ request->send(200, "text/plain", "Hello World"); }); server.begin(); } void loop(){}