#include <Arduino.h>
#include <WebServer.h>
#include <WiFi.h>
const char *ssid = "***";
const char *password = "***";
WebServer server(80);
static const char PROGMEM indexHtml[] = R"rawliteral(
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ESP32</title>
</head>
<body>
<h1>ESP32</h1>
<p><textarea id="mytxt" cols="80" rows="5">test</textarea></p>
<p><button onclick="test()" type="button" style="height: 50px;width: 200px;background-color: #1aa6f67d;border: 0px;">test</button></p>
<p><div id="data">status</div></p>
</body>
<script type="text/javascript">
function test() {
var param1 = document.getElementById('mytxt').value;
consol
ESP32 WebServer POST消息举例
于 2022-09-12 21:55:47 首次发布