{"id":115928,"date":"2026-10-20T15:02:10","date_gmt":"2026-10-20T07:02:10","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/115928.html"},"modified":"2026-10-20T15:02:10","modified_gmt":"2026-10-20T07:02:10","slug":"%e5%9f%ba%e4%ba%8e%e6%99%ae%e4%b8%adesp32%e7%9a%84%e6%99%ba%e8%83%bd%e5%ae%b6%e5%b1%85%e7%8e%af%e5%a2%83%e7%9b%91%e6%b5%8b%e7%b3%bb%e7%bb%9f%ef%bc%88%e9%99%84%e6%ba%90%e7%a0%81%e6%80%9d%e8%b7%af","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/115928.html","title":{"rendered":"\u57fa\u4e8e\u666e\u4e2dESP32\u7684\u667a\u80fd\u5bb6\u5c45\u73af\u5883\u76d1\u6d4b\u7cfb\u7edf\uff08\u9644\u6e90\u7801\u601d\u8def\uff09"},"content":{"rendered":"<p>        \/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/<br \/>\n        #content_views .toc,<br \/>\n        \/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/<br \/>\n        #content_views.markdown_views &gt; p:empty:has(+ .toc),<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty,<br \/>\n        \/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/<br \/>\n        #content_views.htmledit_views #main-toc,<br \/>\n        #content_views.htmledit_views #hr-toc,<br \/>\n        #content_views.htmledit_views p[id*=\\&#8221;-toc\\&#8221;] {<br \/>\n          display: none !important;<br \/>\n        }<br \/>\n        \/* \u76ee\u5f55\u53bb\u6389\u540e\uff0c\u7d27\u8ddf\u7684\u9996\u4e2a\u6807\u9898\u4e0d\u518d\u591a\u51fa\u4e00\u5757\u4e0a\u8fb9\u8ddd *\/<br \/>\n        #content_views.markdown_views &gt; .toc + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + h4,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h4 {<br \/>\n          margin-top: 0 !important;<br \/>\n        }<\/p>\n<h2>\u524d\u8a00<\/h2>\n<p>\u6700\u8fd1\u505a\u4e86\u4e00\u5957\u57fa\u4e8e \u666e\u4e2dESP32 \u7684\u667a\u80fd\u5bb6\u5c45\u73af\u5883\u76d1\u6d4b\u7cfb\u7edf&#xff0c;\u529f\u80fd\u5b8c\u6574&#xff0c;\u6210\u672c\u8f83\u4f4e&#xff0c;\u9002\u5408\u4f5c\u4e3a \u7269\u8054\u7f51\/\u7535\u5b50\/\u8ba1\u7b97\u673a\u4e13\u4e1a\u7684\u5b66\u4e60\u9879\u76ee&#xff0c;\u4e5f\u53ef\u4ee5\u4f5c\u4e3a\u5d4c\u5165\u5f0f\u5165\u95e8\u7684\u5b9e\u6218\u7ec3\u4e60\u3002<\/p>\n<p>\u6574\u5957\u7cfb\u7edf\u5206\u4e3a\u4e24\u79cd\u5b9e\u73b0\u65b9\u5f0f&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u672c\u5730\u7248&#xff1a;OLED \u672c\u5730\u663e\u793a &#043; \u8702\u9e23\u5668\u62a5\u8b66&#xff0c;\u4e0d\u8054\u7f51&#xff0c;\u7b80\u5355\u53ef\u9760\u3002<\/p>\n<\/li>\n<li>\n<p>\u8054\u7f51\u7248&#xff1a;\u5728\u672c\u5730\u7248\u57fa\u7840\u4e0a\u589e\u52a0 WiFi &#043; \u81ea\u5efa Go Web \u670d\u52a1\u5668 &#043; \u624b\u673a\u6d4f\u89c8\u5668\u8fdc\u7a0b\u67e5\u770b&#xff0c;\u4e0d\u4f9d\u8d56\u7b2c\u4e09\u65b9\u7269\u8054\u7f51\u5e73\u53f0&#xff0c;\u6570\u636e\u81ea\u4e3b\u53ef\u63a7\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u672c\u6587\u4e3b\u8981\u5206\u4eab\u7cfb\u7edf\u8bbe\u8ba1\u3001\u786c\u4ef6\u63a5\u7ebf\u3001\u6838\u5fc3\u4ee3\u7801\u548c\u8e29\u5751\u8bb0\u5f55\u3002<\/p>\n<hr \/>\n<h3>\u4e00\u3001\u529f\u80fd\u6982\u89c8<\/h3>\n<table>\n<tr>\u529f\u80fd\u672c\u5730\u7248\u8054\u7f51\u7248<\/tr>\n<tbody>\n<tr>\n<td>DS18B20 \u6e29\u5ea6\u91c7\u96c6<\/td>\n<td>\u2705<\/td>\n<td>\u2705<\/td>\n<\/tr>\n<tr>\n<td>DHT11 \u6e7f\u5ea6\u91c7\u96c6<\/td>\n<td>\u2705<\/td>\n<td>\u2705<\/td>\n<\/tr>\n<tr>\n<td>MQ-1 \u70df\u96fe\u6d53\u5ea6\u91c7\u96c6<\/td>\n<td>\u2705<\/td>\n<td>\u2705<\/td>\n<\/tr>\n<tr>\n<td>\u5149\u654f\u4f20\u611f\u5668\u5149\u7167\u91c7\u96c6<\/td>\n<td>\u2705<\/td>\n<td>\u2705<\/td>\n<\/tr>\n<tr>\n<td>OLED 0.96\u5bf8\u672c\u5730\u663e\u793a<\/td>\n<td>\u2705<\/td>\n<td>\u2705<\/td>\n<\/tr>\n<tr>\n<td>\u6709\u6e90\u8702\u9e23\u5668\u8d85\u9650\u62a5\u8b66<\/td>\n<td>\u2705<\/td>\n<td>\u2705<\/td>\n<\/tr>\n<tr>\n<td>WiFi \u8054\u7f51<\/td>\n<td>\u274c<\/td>\n<td>\u2705<\/td>\n<\/tr>\n<tr>\n<td>HTTP \u4e0a\u4f20\u6570\u636e<\/td>\n<td>\u274c<\/td>\n<td>\u2705<\/td>\n<\/tr>\n<tr>\n<td>\u81ea\u5efa Go Web \u670d\u52a1\u5668<\/td>\n<td>\u274c<\/td>\n<td>\u2705<\/td>\n<\/tr>\n<tr>\n<td>\u624b\u673a\u6d4f\u89c8\u5668\u8fdc\u7a0b\u67e5\u770b<\/td>\n<td>\u274c<\/td>\n<td>\u2705<\/td>\n<\/tr>\n<tr>\n<td>\u5386\u53f2\u6570\u636e\u66f2\u7ebf<\/td>\n<td>\u274c<\/td>\n<td>\u2705<\/td>\n<\/tr>\n<tr>\n<td>\u6570\u636e\u6301\u4e45\u5316<\/td>\n<td>\u274c<\/td>\n<td>\u2705<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8054\u7f51\u7248\u7684\u7279\u70b9\u662f&#xff1a;\u81ea\u5df1\u7528 Go \u5199\u4e00\u4e2a\u8f7b\u91cf Web \u670d\u52a1\u5668&#xff0c;ESP32 \u901a\u8fc7 HTTP POST \u4e0a\u4f20\u6570\u636e&#xff0c;\u624b\u673a\u8fde\u540c\u4e00\u4e2a WiFi \u5c31\u80fd\u5728\u6d4f\u89c8\u5668\u91cc\u770b\u5b9e\u65f6\u6570\u636e\u3001\u5386\u53f2\u66f2\u7ebf\u548c\u62a5\u8b66\u72b6\u6001\u3002<\/p>\n<hr \/>\n<h3>\u4e8c\u3001\u786c\u4ef6\u6e05\u5355<\/h3>\n<table>\n<tr>\u6a21\u5757\u578b\u53f7<\/tr>\n<tbody>\n<tr>\n<td>\u4e3b\u63a7<\/td>\n<td>\u666e\u4e2dESP32\u5f00\u53d1\u677f<\/td>\n<\/tr>\n<tr>\n<td>\u6e29\u5ea6<\/td>\n<td>DS18B20<\/td>\n<\/tr>\n<tr>\n<td>\u6e7f\u5ea6<\/td>\n<td>DHT11<\/td>\n<\/tr>\n<tr>\n<td>\u70df\u96fe<\/td>\n<td>MQ-1 \u70df\u96fe\u4f20\u611f\u5668\u6a21\u5757<\/td>\n<\/tr>\n<tr>\n<td>\u5149\u7167<\/td>\n<td>\u5149\u654f\u4f20\u611f\u5668\u6a21\u5757<\/td>\n<\/tr>\n<tr>\n<td>\u663e\u793a<\/td>\n<td>OLED 0.96\u5bf8 I2C<\/td>\n<\/tr>\n<tr>\n<td>\u62a5\u8b66<\/td>\n<td>\u6709\u6e90\u8702\u9e23\u5668<\/td>\n<\/tr>\n<tr>\n<td>\u5176\u4ed6<\/td>\n<td>\u675c\u90a6\u7ebf\u3001\u9762\u5305\u677f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6574\u5957\u6210\u672c\u53ef\u4ee5\u63a7\u5236\u5728\u8f83\u4f4e\u8303\u56f4&#xff0c;\u9002\u5408\u5b66\u751f\u9879\u76ee\u3002<\/p>\n<hr \/>\n<h3>\u4e09\u3001\u63a5\u7ebf\u8bf4\u660e&#xff08;\u8054\u7f51\u7248&#xff09;<\/h3>\n<table>\n<tr>\u6a21\u5757\u5f15\u811aESP32\u5f15\u811a<\/tr>\n<tbody>\n<tr>\n<td>DS18B20<\/td>\n<td>DATA<\/td>\n<td>GPIO4&#xff08;\u97004.7K\u4e0a\u62c9\u52303.3V&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>DHT11<\/td>\n<td>DATA<\/td>\n<td>GPIO27&#xff08;\u97004.7K\u4e0a\u62c9\u52303.3V&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>MQ-1<\/td>\n<td>AO<\/td>\n<td>GPIO35&#xff08;ADC1&#xff0c;WiFi\u4e0b\u5fc5\u987b\u7528ADC1&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u5149\u654f\u4f20\u611f\u5668<\/td>\n<td>AO<\/td>\n<td>GPIO34&#xff08;ADC1&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>OLED<\/td>\n<td>SDA<\/td>\n<td>GPIO23<\/td>\n<\/tr>\n<tr>\n<td>OLED<\/td>\n<td>SCL<\/td>\n<td>GPIO18<\/td>\n<\/tr>\n<tr>\n<td>\u8702\u9e23\u5668<\/td>\n<td>\u4fe1\u53f7<\/td>\n<td>GPIO25<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u26a0\ufe0f \u6ce8\u610f&#xff1a;GPIO13 \u5c5e\u4e8e ADC2&#xff0c;WiFi \u5de5\u4f5c\u65f6\u4f1a\u88ab\u5360\u7528&#xff0c;\u6240\u4ee5\u8054\u7f51\u7248\u7684 MQ-1 \u5fc5\u987b\u63a5 ADC1 \u5f15\u811a&#xff08;\u5982 GPIO35&#xff09;\u3002<\/p>\n<hr \/>\n<h3>\u56db\u3001\u5f00\u53d1\u73af\u5883<\/h3>\n<ul>\n<li>\n<p>Arduino IDE&#xff1a;2.3.10<\/p>\n<\/li>\n<li>\n<p>\u5f00\u53d1\u677f\u652f\u6301\u5305&#xff1a;espressif arduino-esp32<\/p>\n<\/li>\n<li>\n<p>\u5f00\u53d1\u677f\u9009\u62e9&#xff1a;ESP32 Dev Module<\/p>\n<\/li>\n<li>\n<p>\u4e0a\u4f20\u901f\u5ea6&#xff1a;921600<\/p>\n<\/li>\n<li>\n<p>Flash Mode&#xff1a;DIO<\/p>\n<\/li>\n<li>\n<p>Flash Size&#xff1a;4MB<\/p>\n<\/li>\n<li>\n<p>\u6240\u9700\u5e93&#xff1a;<\/p>\n<ul>\n<li>\n<p>OneWire<\/p>\n<\/li>\n<li>\n<p>DallasTemperature<\/p>\n<\/li>\n<li>\n<p>DHT sensor library<\/p>\n<\/li>\n<li>\n<p>Adafruit Unified Sensor<\/p>\n<\/li>\n<li>\n<p>Adafruit SSD1306<\/p>\n<\/li>\n<li>\n<p>Adafruit GFX<\/p>\n<\/li>\n<li>\n<p>HTTPClient<\/p>\n<\/li>\n<li>\n<p>ArduinoJson<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Go \u73af\u5883&#xff1a;Go 1.26.8 windows\/amd64&#xff08;\u8054\u7f51\u7248\u9700\u8981&#xff09;<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3>\u4e94\u3001\u6838\u5fc3\u4ee3\u7801\u7247\u6bb5<\/h3>\n<h4>1. ESP32 \u8bfb\u53d6\u4f20\u611f\u5668\u5e76\u4e0a\u4f20&#xff08;\u8054\u7f51\u7248&#xff09;<\/h4>\n<p>cpp<\/p>\n<p>#include &lt;WiFi.h&gt;<br \/>\n#include &lt;HTTPClient.h&gt;<br \/>\n#include &lt;OneWire.h&gt;<br \/>\n#include &lt;DallasTemperature.h&gt;<br \/>\n#include &lt;DHT.h&gt;<br \/>\n#include &lt;Wire.h&gt;<br \/>\n#include &lt;Adafruit_SSD1306.h&gt;<\/p>\n<p>#define DS18B20_PIN 4<br \/>\n#define DHT_PIN 27<br \/>\n#define MQ1_PIN 35<br \/>\n#define LIGHT_PIN 34<br \/>\n#define BUZZER_PIN 25<\/p>\n<p>const char* ssid &#061; &#034;\u4f60\u7684WiFi&#034;;<br \/>\nconst char* password &#061; &#034;\u4f60\u7684\u5bc6\u7801&#034;;<br \/>\nconst char* serverUrl &#061; &#034;http:\/\/192.168.1.100:8080\/api\/upload&#034;;<\/p>\n<p>\/\/ &#8230; \u4f20\u611f\u5668\u5bf9\u8c61\u521d\u59cb\u5316 &#8230;<\/p>\n<p>void uploadData(float temp, float humi, int smoke, int light, bool alarm) {<br \/>\n  if (WiFi.status() !&#061; WL_CONNECTED) return;<br \/>\n  HTTPClient http;<br \/>\n  http.begin(serverUrl);<br \/>\n  http.addHeader(&#034;Content-Type&#034;, &#034;application\/json&#034;);<br \/>\n  String json &#061; &#034;{\\\\&#034;temperature\\\\&#034;:&#034; &#043; String(temp, 1) &#043;<br \/>\n                &#034;,\\\\&#034;humidity\\\\&#034;:&#034; &#043; String(humi, 1) &#043;<br \/>\n                &#034;,\\\\&#034;smoke\\\\&#034;:&#034; &#043; String(smoke) &#043;<br \/>\n                &#034;,\\\\&#034;light\\\\&#034;:&#034; &#043; String(light) &#043;<br \/>\n                &#034;,\\\\&#034;alarm\\\\&#034;:&#034; &#043; String(alarm ? &#034;true&#034; : &#034;false&#034;) &#043; &#034;}&#034;;<br \/>\n  int code &#061; http.POST(json);<br \/>\n  http.end();<br \/>\n}<\/p>\n<h4>2. Go Web \u670d\u52a1\u5668&#xff08;\u7b80\u5316\u7248&#xff09;<\/h4>\n<p>go<\/p>\n<p>package main<\/p>\n<p>import (<br \/>\n    &#034;encoding\/json&#034;<br \/>\n    &#034;net\/http&#034;<br \/>\n    &#034;sync&#034;<br \/>\n    &#034;time&#034;<br \/>\n)<\/p>\n<p>type SensorData struct {<br \/>\n    Temperature float64 &#096;json:&#034;temperature&#034;&#096;<br \/>\n    Humidity    float64 &#096;json:&#034;humidity&#034;&#096;<br \/>\n    Smoke       int     &#096;json:&#034;smoke&#034;&#096;<br \/>\n    Light       int     &#096;json:&#034;light&#034;&#096;<br \/>\n    Alarm       bool    &#096;json:&#034;alarm&#034;&#096;<br \/>\n    Timestamp   int64   &#096;json:&#034;timestamp&#034;&#096;<br \/>\n}<\/p>\n<p>var (<br \/>\n    mu      sync.RWMutex<br \/>\n    latest  SensorData<br \/>\n    history []SensorData<br \/>\n)<\/p>\n<p>func uploadHandler(w http.ResponseWriter, r *http.Request) {<br \/>\n    var d SensorData<br \/>\n    json.NewDecoder(r.Body).Decode(&amp;d)<br \/>\n    d.Timestamp &#061; time.Now().Unix()<br \/>\n    mu.Lock()<br \/>\n    latest &#061; d<br \/>\n    history &#061; append(history, d)<br \/>\n    if len(history) &gt; 2880 {<br \/>\n        history &#061; history[len(history)-2880:]<br \/>\n    }<br \/>\n    mu.Unlock()<br \/>\n    w.Write([]byte(&#096;{&#034;status&#034;:&#034;ok&#034;}&#096;))<br \/>\n}<\/p>\n<p>func main() {<br \/>\n    http.HandleFunc(&#034;\/api\/upload&#034;, uploadHandler)<br \/>\n    http.HandleFunc(&#034;\/api\/latest&#034;, func(w http.ResponseWriter, r *http.Request) {<br \/>\n        mu.RLock()<br \/>\n        json.NewEncoder(w).Encode(latest)<br \/>\n        mu.RUnlock()<br \/>\n    })<br \/>\n    http.HandleFunc(&#034;\/&#034;, func(w http.ResponseWriter, r *http.Request) {<br \/>\n        w.Header().Set(&#034;Content-Type&#034;, &#034;text\/html; charset&#061;utf-8&#034;)<br \/>\n        w.Write([]byte(htmlPage)) \/\/ \u5185\u5d4cHTML&#xff0c;\u542bChart.js\u66f2\u7ebf<br \/>\n    })<br \/>\n    http.ListenAndServe(&#034;:8080&#034;, nil)<br \/>\n}<\/p>\n<hr \/>\n<h3>\u516d\u3001\u8e29\u5751\u8bb0\u5f55<\/h3>\n<h4>1. ADC2 \u4e0e WiFi \u51b2\u7a81<\/h4>\n<p>\u4e00\u5f00\u59cb\u628a MQ-1 \u63a5\u5728 GPIO13&#xff0c;\u4e0d\u8054\u7f51\u65f6\u8bfb\u6570\u6b63\u5e38&#xff0c;\u4e00\u5f00 WiFi \u5c31\u4e00\u76f4\u662f 4095\u3002\u540e\u6765\u67e5\u8d44\u6599\u624d\u77e5\u9053 GPIO13 \u5c5e\u4e8e ADC2&#xff0c;WiFi \u5de5\u4f5c\u65f6\u4f1a\u88ab\u5360\u7528&#xff0c;\u5fc5\u987b\u6539\u7528 ADC1 \u5f15\u811a&#xff08;GPIO32-39&#xff09;\u3002<\/p>\n<h4>2. \u5149\u654f\u6a21\u5757\u8bfb\u6570\u4e00\u76f4\u662f 4095<\/h4>\n<p>\u540c\u6837\u662f\u56e0\u4e3a\u63a5\u5728\u4e86 ADC2 \u5f15\u811a\u4e0a\u3002\u6539\u5230 GPIO34 \u540e\u6062\u590d\u6b63\u5e38\u3002<\/p>\n<h4>3. DS18B20 \u8bfb\u4e0d\u51fa\u6570\u636e<\/h4>\n<p>DS18B20 \u7684 DATA \u5f15\u811a\u5fc5\u987b\u63a5 4.7K \u4e0a\u62c9\u7535\u963b\u5230 3.3V&#xff0c;\u5426\u5219\u8bfb\u6570\u4e3a -127\u3002\u5f88\u591a\u6a21\u5757\u81ea\u5e26\u8fd9\u4e2a\u7535\u963b&#xff0c;\u88f8\u4f20\u611f\u5668\u9700\u8981\u81ea\u5df1\u52a0\u3002<\/p>\n<h4>4. MQ-1 \u9884\u70ed<\/h4>\n<p>MQ-1 \u9996\u6b21\u4e0a\u7535\u9700\u8981 \u9884\u70ed\u7ea6 20 \u79d2&#xff0c;\u8bfb\u6570\u624d\u7a33\u5b9a\u3002\u4ee3\u7801\u91cc\u52a0\u4e86\u9884\u70ed\u7b49\u5f85\u548c\u4e32\u53e3\u63d0\u793a\u3002<\/p>\n<h4>5. OLED \u7684 I2C \u5f15\u811a<\/h4>\n<p>\u666e\u4e2d\u8fd9\u5757\u677f\u5b50\u7684 OLED \u7528\u7684\u662f SDA&#061;GPIO23&#xff0c;SCL&#061;GPIO18&#xff0c;\u4e0d\u662f ESP32 \u9ed8\u8ba4\u7684 21\/22\u3002\u4ee3\u7801\u91cc\u5fc5\u987b\u5199 Wire.begin(23, 18)\u3002<\/p>\n<hr \/>\n<h3>\u4e03\u3001\u6548\u679c\u5c55\u793a<\/h3>\n<p>\u5b9e\u7269\u63a5\u7ebf\u56fe<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261020070159-6ad711e76e40b.jpg\" \/><\/p>\n<p>OLED \u672c\u5730\u663e\u793a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261020070203-6ad711eb0f564.jpg\" \/><\/p>\n<p>\u624b\u673a\u6d4f\u89c8\u5668\u8fdc\u7a0b\u67e5\u770b&#xff08;\u9ad8\u7ea7\u7248&#xff09;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261020070206-6ad711ee99d1b.png\" \/><\/p>\n<p>\u5386\u53f2\u6570\u636e\u66f2\u7ebf<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261020070208-6ad711f03c388.png\" \/><\/p>\n<hr \/>\n<h3>\u00a0<\/h3>\n<h3>\u516b\u3001\u603b\u7ed3<\/h3>\n<p>\u8fd9\u5957\u57fa\u4e8e\u666e\u4e2dESP32\u7684\u667a\u80fd\u5bb6\u5c45\u73af\u5883\u76d1\u6d4b\u7cfb\u7edf&#xff0c;\u6210\u672c\u4f4e\u3001\u529f\u80fd\u5168\u3001\u53ef\u6f14\u793a\u3001\u80fd\u5199\u5f00\u9898\u3001\u80fd\u8fc7\u7b54\u8fa9\u3002\u57fa\u7840\u7248\u9002\u5408\u5165\u95e8&#xff0c;\u9ad8\u7ea7\u7248\u9002\u5408\u51b2\u4f18\u79c0\u6bd5\u8bbe\u3002\u5982\u679c\u4f60\u4e5f\u5728\u505a\u7269\u8054\u7f51\u76f8\u5173\u7684\u6bd5\u8bbe\u6216\u8bfe\u8bbe&#xff0c;\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u7ed9\u4f60\u4e00\u4e9b\u53c2\u8003\u3002<\/p>\n<p>\u5982\u679c\u89c9\u5f97\u6709\u5e2e\u52a9&#xff0c;\u6b22\u8fce \u70b9\u8d5e\u3001\u6536\u85cf\u3001\u8bc4\u8bba&#xff0c;\u4f60\u7684\u652f\u6301\u662f\u6211\u6301\u7eed\u5206\u4eab\u7684\u52a8\u529b&#xff01;<\/p>\n<hr \/>\n<p>\u6807\u7b7e&#xff1a;ESP32 \u667a\u80fd\u5bb6\u5c45 \u6bd5\u4e1a\u8bbe\u8ba1 \u7269\u8054\u7f51 Arduino Go Web\u670d\u52a1\u5668<\/p>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content<\/p>\n","protected":false},"author":2,"featured_media":115924,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[746,2115,43],"topic":[],"class_list":["post-115928","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-golang","tag-2115","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u57fa\u4e8e\u666e\u4e2dESP32\u7684\u667a\u80fd\u5bb6\u5c45\u73af\u5883\u76d1\u6d4b\u7cfb\u7edf\uff08\u9644\u6e90\u7801\u601d\u8def\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/115928.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u57fa\u4e8e\u666e\u4e2dESP32\u7684\u667a\u80fd\u5bb6\u5c45\u73af\u5883\u76d1\u6d4b\u7cfb\u7edf\uff08\u9644\u6e90\u7801\u601d\u8def\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/115928.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-20T07:02:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261020070159-6ad711e76e40b.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/115928.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/115928.html\",\"name\":\"\u57fa\u4e8e\u666e\u4e2dESP32\u7684\u667a\u80fd\u5bb6\u5c45\u73af\u5883\u76d1\u6d4b\u7cfb\u7edf\uff08\u9644\u6e90\u7801\u601d\u8def\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-20T07:02:10+00:00\",\"dateModified\":\"2026-10-20T07:02:10+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/115928.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/115928.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/115928.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u57fa\u4e8e\u666e\u4e2dESP32\u7684\u667a\u80fd\u5bb6\u5c45\u73af\u5883\u76d1\u6d4b\u7cfb\u7edf\uff08\u9644\u6e90\u7801\u601d\u8def\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u57fa\u4e8e\u666e\u4e2dESP32\u7684\u667a\u80fd\u5bb6\u5c45\u73af\u5883\u76d1\u6d4b\u7cfb\u7edf\uff08\u9644\u6e90\u7801\u601d\u8def\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/115928.html","og_locale":"zh_CN","og_type":"article","og_title":"\u57fa\u4e8e\u666e\u4e2dESP32\u7684\u667a\u80fd\u5bb6\u5c45\u73af\u5883\u76d1\u6d4b\u7cfb\u7edf\uff08\u9644\u6e90\u7801\u601d\u8def\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content","og_url":"https:\/\/www.wsisp.com\/helps\/115928.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-20T07:02:10+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261020070159-6ad711e76e40b.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/115928.html","url":"https:\/\/www.wsisp.com\/helps\/115928.html","name":"\u57fa\u4e8e\u666e\u4e2dESP32\u7684\u667a\u80fd\u5bb6\u5c45\u73af\u5883\u76d1\u6d4b\u7cfb\u7edf\uff08\u9644\u6e90\u7801\u601d\u8def\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-20T07:02:10+00:00","dateModified":"2026-10-20T07:02:10+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/115928.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/115928.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/115928.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u57fa\u4e8e\u666e\u4e2dESP32\u7684\u667a\u80fd\u5bb6\u5c45\u73af\u5883\u76d1\u6d4b\u7cfb\u7edf\uff08\u9644\u6e90\u7801\u601d\u8def\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/115928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=115928"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/115928\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/115924"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=115928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=115928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=115928"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=115928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}