arduino1 ESP32 웹서버 만들기 'Hello world' ESP32의 최대 장점인 와이파이를 연결하여 아주 간단한 웹서버를 만들겠습니다. 아래의 소스코드를 ESP32 모듈에 넣고 동작 시킵니다. 시리얼 모니터에 표시되는 IP 주소를 웹브라우저(저는 크롬 사용)의 주소창에 입력하면 프로그래머에게 너무나 친숙한 'Hello world'가 표시 됩니다. #include #include #include AsyncWebServer server(80); const char* ssid = "YOUR_SSID"; const char* password = "YOUR_PASSWORD"; // 페이지를 찾을 수 없을 때 void notFound(AsyncWebServerRequest *request) { request->send(404, "text/plain", "Not foun.. 2023. 9. 20. 이전 1 다음