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(){}
file: /Techref/esp-32.htm, 11KB, , updated: 2021/8/21 20:10, local time: 2024/11/21 22:01,
owner: JMN-EFP-786,
3.142.201.93:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.org/Techref/esp-32.htm"> Espressif ESP-32 System On Chip</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to massmind.org! |
.