{"id":79067,"date":"2026-02-28T22:25:40","date_gmt":"2026-02-28T14:25:40","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/79067.html"},"modified":"2026-02-28T22:25:40","modified_gmt":"2026-02-28T14:25:40","slug":"esp8266%e4%b8%b2%e5%8f%a3%e6%a8%a1%e5%9d%97%e5%b7%a5%e7%a8%8b%e5%8c%96%e8%ae%be%e8%ae%a1%e4%b8%8e%e5%ae%9e%e7%8e%b0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/79067.html","title":{"rendered":"ESP8266\u4e32\u53e3\u6a21\u5757\u5de5\u7a0b\u5316\u8bbe\u8ba1\u4e0e\u5b9e\u73b0"},"content":{"rendered":"<h3>\n 1. \u4e32\u53e3\u6a21\u5757\u7684\u5de5\u7a0b\u5316\u8bbe\u8ba1\u4e0e\u5b9e\u73b0<br \/>\n<\/h3>\n<p>\n \u5728\u5d4c\u5165\u5f0f\u7cfb\u7edf\u5f00\u53d1\u4e2d&#xff0c;\u4e32\u53e3&#xff08;UART&#xff09;\u4e0d\u4ec5\u662f\u8c03\u8bd5\u4fe1\u606f\u8f93\u51fa\u7684\u6838\u5fc3\u901a\u9053&#xff0c;\u66f4\u662f\u7cfb\u7edf\u72b6\u6001\u76d1\u63a7\u3001\u534f\u8bae\u4ea4\u4e92\u548c\u6545\u969c\u8bca\u65ad\u7684\u5173\u952e\u57fa\u7840\u8bbe\u65bd\u3002\u5bf9\u4e8e\u57fa\u4e8eESP8266\u5e73\u53f0\u7684\u5929\u6c14\u65f6\u949f\u9879\u76ee\u800c\u8a00&#xff0c;\u4e32\u53e3\u6a21\u5757\u5e76\u975e\u7b80\u5355\u7684<\/p>\n<p>  Serial.print()<\/p>\n<p> \u8c03\u7528\u96c6\u5408&#xff0c;\u800c\u662f\u4e00\u4e2a\u9700\u8981\u5177\u5907\u660e\u786e\u63a5\u53e3\u5951\u7ea6\u3001\u53ef\u590d\u7528\u6027\u3001\u65f6\u95f4\u6233\u589e\u5f3a\u80fd\u529b&#xff0c;\u5e76\u80fd\u65e0\u7f1d\u878d\u5165\u6574\u4f53\u8f6f\u4ef6\u67b6\u6784\u7684\u72ec\u7acb\u529f\u80fd\u5355\u5143\u3002\u672c\u8282\u5c06\u4ece\u5de5\u7a0b\u5b9e\u8df5\u89d2\u5ea6\u51fa\u53d1&#xff0c;\u5b8c\u6574\u9610\u8ff0\u4e32\u53e3\u6a21\u5757\u7684\u8bbe\u8ba1\u601d\u60f3\u3001\u4ee3\u7801\u7ec4\u7ec7\u3001\u521d\u59cb\u5316\u903b\u8f91\u3001API\u5b9a\u4e49\u53ca\u5b9e\u9645\u9a8c\u8bc1\u6d41\u7a0b&#xff0c;\u6240\u6709\u5185\u5bb9\u5747\u57fa\u4e8eESP8266\u786c\u4ef6\u7279\u6027\u4e0eArduino Core for ESP8266 SDK\u7684\u771f\u5b9e\u884c\u4e3a\u3002\n<\/p>\n<h4>\n 1.1 \u6a21\u5757\u5316\u67b6\u6784\u7684\u5fc5\u8981\u6027<br \/>\n<\/h4>\n<p>\n \u5728\u4f20\u7edf\u88f8\u673a\u6216\u7b80\u5355Arduino\u8349\u56fe\u4e2d&#xff0c;\u5f00\u53d1\u8005\u5e38\u5c06<\/p>\n<p>  Serial.begin(115200)<\/p>\n<p> \u4e0e<\/p>\n<p>  Serial.println(&#034;debug&#034;)<\/p>\n<p> \u76f4\u63a5\u5199\u5165<\/p>\n<p>  setup()<\/p>\n<p> \u548c<\/p>\n<p>  loop()<\/p>\n<p> \u51fd\u6570\u5185\u3002\u8fd9\u79cd\u5199\u6cd5\u867d\u80fd\u5feb\u901f\u89c1\u6548&#xff0c;\u4f46\u5728\u4e2d\u7b49\u89c4\u6a21\u9879\u76ee\u4e2d\u4f1a\u8fc5\u901f\u66b4\u9732\u4e25\u91cd\u7f3a\u9677&#xff1a;<\/p>\n<p> &#8211;<\/p>\n<p>  \u8026\u5408\u5ea6\u9ad8<\/p>\n<p> &#xff1a;\u8c03\u8bd5\u4ee3\u7801\u4e0e\u4e1a\u52a1\u903b\u8f91\u4ea4\u7ec7&#xff0c;\u4fee\u6539OLED\u9a71\u52a8\u6216NTP\u540c\u6b65\u903b\u8f91\u65f6&#xff0c;\u6781\u6613\u8bef\u5220\u6216\u5e72\u6270\u4e32\u53e3\u8f93\u51fa&#xff1b;<\/p>\n<p> &#8211;<\/p>\n<p>  \u53ef\u7ef4\u62a4\u6027\u5dee<\/p>\n<p> &#xff1a;\u5f53\u9700\u8981\u4e3a\u4e0d\u540c\u6a21\u5757&#xff08;\u5982WiFi\u8fde\u63a5\u3001\u4f20\u611f\u5668\u8bfb\u53d6\u3001\u65f6\u949f\u540c\u6b65&#xff09;\u6dfb\u52a0\u5dee\u5f02\u5316\u65e5\u5fd7\u7ea7\u522b&#xff08;INFO\/ERROR\/WARN&#xff09;\u65f6&#xff0c;\u9700\u5728\u591a\u5904\u91cd\u590d\u4fee\u6539\u6ce2\u7279\u7387\u3001\u683c\u5f0f\u5316\u903b\u8f91&#xff1b;<\/p>\n<p> &#8211;<\/p>\n<p>  \u53ef\u6d4b\u8bd5\u6027\u7f3a\u5931<\/p>\n<p> &#xff1a;\u65e0\u6cd5\u5bf9\u65e5\u5fd7\u529f\u80fd\u8fdb\u884c\u72ec\u7acb\u5355\u5143\u6d4b\u8bd5&#xff0c;\u4e5f\u65e0\u6cd5\u5728\u65e0\u786c\u4ef6\u73af\u5883\u4e0b\u6a21\u62df\u4e32\u53e3\u884c\u4e3a&#xff1b;<\/p>\n<p> &#8211;<\/p>\n<p>  \u79fb\u690d\u6027\u53d7\u9650<\/p>\n<p> &#xff1a;\u82e5\u540e\u7eed\u8fc1\u79fb\u5230ESP32\u6216STM32\u5e73\u53f0&#xff0c;\u6240\u6709\u786c\u7f16\u7801\u7684<\/p>\n<p>  Serial<\/p>\n<p> \u8c03\u7528\u9700\u5168\u5c40\u66ff\u6362&#xff0c;\u4e14\u65e0\u6cd5\u590d\u7528\u539f\u6709\u65e5\u5fd7\u5c01\u88c5\u903b\u8f91\u3002\n<\/p>\n<p>\n \u56e0\u6b64&#xff0c;\u672c\u9879\u76ee\u91c7\u7528\u4e25\u683c\u7684\u6a21\u5757\u5316\u8bbe\u8ba1\u539f\u5219&#xff1a;\u5c06\u4e32\u53e3\u529f\u80fd\u62bd\u8c61\u4e3a\u72ec\u7acb\u7684<\/p>\n<p>  Serial<\/p>\n<p> \u7ec4\u4ef6&#xff0c;\u901a\u8fc7\u5934\u6587\u4ef6\u58f0\u660e\u63a5\u53e3\u3001\u6e90\u6587\u4ef6\u5b9e\u73b0\u7ec6\u8282&#xff0c;\u4e3b\u7a0b\u5e8f\u4ec5\u4f9d\u8d56\u5176\u516c\u5f00API\u3002\u8be5\u8bbe\u8ba1\u5b8c\u5168\u9075\u5faaC\/C&#043;&#043;\u5de5\u7a0b\u6700\u4f73\u5b9e\u8df5&#xff0c;\u4e0eESP-IDF\u4e2d\u7684\u7ec4\u4ef6\u5316\u601d\u60f3\u4e00\u81f4&#xff0c;\u4e5f\u4e3a\u540e\u7eed\u5f15\u5165\u65e5\u5fd7\u7b49\u7ea7\u8fc7\u6ee4\u3001\u73af\u5f62\u7f13\u51b2\u533a\u3001\u8fdc\u7a0b\u65e5\u5fd7\u4e0a\u4f20\u7b49\u9ad8\u7ea7\u7279\u6027\u9884\u7559\u4e86\u6807\u51c6\u6269\u5c55\u63a5\u53e3\u3002\n<\/p>\n<h4>\n 1.2 \u6587\u4ef6\u7ed3\u6784\u4e0e\u9884\u5904\u7406\u9632\u62a4<br \/>\n<\/h4>\n<p>\n \u6a21\u5757\u7684\u7269\u7406\u8f7d\u4f53\u7531\u4e24\u4e2a\u6807\u51c6\u6587\u4ef6\u6784\u6210&#xff1a;<\/p>\n<p>  serial.h<\/p>\n<p> &#xff08;\u63a5\u53e3\u58f0\u660e&#xff09;\u4e0e<\/p>\n<p>  serial.cpp<\/p>\n<p> &#xff08;\u529f\u80fd\u5b9e\u73b0&#xff09;\u3002\u6b64\u7ed3\u6784\u5f3a\u5236\u5206\u79bb\u63a5\u53e3\u4e0e\u5b9e\u73b0&#xff0c;\u662fC&#043;&#043;\u5c01\u88c5\u6027\u7684\u57fa\u7840\u4fdd\u969c\u3002\u521b\u5efa\u8fc7\u7a0b\u9700\u4e25\u683c\u9075\u5faa\u4ee5\u4e0b\u6b65\u9aa4&#xff1a;\n<\/p>\n<li>\n  \u5728Arduino IDE\u4e2d&#xff0c;\u70b9\u51fb\u53f3\u4e0a\u89d2\u201c\u2026\u201d\u6309\u94ae \u2192 \u201c\u65b0\u5efa\u6807\u7b7e\u9875\u201d&#xff1b;\n <\/li>\n<li>\n  \u8f93\u5165\u6587\u4ef6\u540d<\/p>\n<p>   serial.h<\/p>\n<p>  &#xff0c;\u786e\u8ba4\u521b\u5efa&#xff1b;\n <\/li>\n<li>\n  \u518d\u6b21\u70b9\u51fb\u201c\u2026\u201d \u2192 \u201c\u65b0\u5efa\u6807\u7b7e\u9875\u201d&#xff0c;\u8f93\u5165<\/p>\n<p>   serial.cpp<\/p>\n<p>  &#xff0c;\u786e\u8ba4\u521b\u5efa\u3002\n <\/li>\n<p>\n \u6b64\u65f6\u9879\u76ee\u76ee\u5f55\u4e0b\u5c06\u51fa\u73b0\u4e24\u4e2a\u72ec\u7acb\u6587\u4ef6\u3002\u5173\u952e\u5728\u4e8e<\/p>\n<p>  serial.h<\/p>\n<p> \u5fc5\u987b\u5305\u542b\u5b8c\u6574\u7684<\/p>\n<p>  \u5934\u6587\u4ef6\u9632\u62a4\u5b8f&#xff08;Include Guard&#xff09;<\/p>\n<p> &#xff0c;\u8fd9\u662f\u9632\u6b62\u591a\u91cd\u5305\u542b\u5bfc\u81f4\u7f16\u8bd1\u9519\u8bef\u7684\u57fa\u77f3\u3002\u5176\u6807\u51c6\u5199\u6cd5\u5982\u4e0b&#xff1a;\n<\/p>\n<p>#ifndef SERIAL_H<br \/>\n#define SERIAL_H<\/p>\n<p>\/\/ \u63a5\u53e3\u58f0\u660e\u5185\u5bb9<\/p>\n<p>#endif \/\/ SERIAL_H<\/p>\n<p>\n \u6b64\u5904<\/p>\n<p>  SERIAL_H<\/p>\n<p> \u4e3a\u5b8f\u540d&#xff0c;\u9700\u4e0e\u6587\u4ef6\u540d\u5168\u5927\u5199\u5e76\u53bb\u9664\u70b9\u53f7&#xff08;<\/p>\n<p>  .h<\/p>\n<p> &#xff09;\u4e25\u683c\u5bf9\u5e94\u3002\u82e5\u8bef\u5199\u4e3a<\/p>\n<p>  SERIAL_H_<\/p>\n<p> \u6216<\/p>\n<p>  SERIAL_HH<\/p>\n<p> &#xff0c;\u9632\u62a4\u673a\u5236\u5c06\u5931\u6548&#xff1b;\u82e5\u4f7f\u7528<\/p>\n<p>  #pragma once<\/p>\n<p> &#xff08;\u975e\u6807\u51c6C&#043;&#043;&#xff09;&#xff0c;\u5219\u5728\u90e8\u5206\u8001\u65e7\u5de5\u5177\u94fe\u4e2d\u5b58\u5728\u517c\u5bb9\u6027\u98ce\u9669\u3002\u9632\u62a4\u5b8f\u5fc5\u987b\u7f6e\u4e8e\u6587\u4ef6\u6700\u9876\u7aef&#xff0c;\u4e14<\/p>\n<p>  #endif<\/p>\n<p> \u5fc5\u987b\u4e3a\u6587\u4ef6\u6700\u540e\u4e00\u884c&#xff0c;\u4e2d\u95f4\u4e0d\u5f97\u63d2\u5165\u7a7a\u884c\u6216\u6ce8\u91ca\u2014\u2014\u8fd9\u662f\u5d4c\u5165\u5f0f\u7f16\u8bd1\u5668&#xff08;\u5982xtensa-lx106-elf-gcc&#xff09;\u5bf9\u9884\u5904\u7406\u5668\u7684\u786c\u6027\u8981\u6c42\u3002\n<\/p>\n<h4>\n 1.3 \u5934\u6587\u4ef6\u63a5\u53e3\u8bbe\u8ba1\u4e0e\u4f9d\u8d56\u7ba1\u7406<br \/>\n<\/h4>\n<p>  serial.h<\/p>\n<p> \u7684\u6838\u5fc3\u4efb\u52a1\u662f\u5411\u5916\u90e8\u4e16\u754c\u63d0\u4f9b\u6e05\u6670\u3001\u7a33\u5b9a\u3001\u6700\u5c0f\u5316\u7684API\u5951\u7ea6\u3002\u5176\u5185\u5bb9\u5fc5\u987b\u7cbe\u70bc&#xff0c;\u4ec5\u66b4\u9732\u8c03\u7528\u8005\u5fc5\u9700\u7684\u7b26\u53f7\u3002\u5b8c\u6574\u63a5\u53e3\u5b9a\u4e49\u5982\u4e0b&#xff1a;\n<\/p>\n<p>#ifndef SERIAL_H<br \/>\n#define SERIAL_H<\/p>\n<p>#include &lt;Arduino.h&gt;  \/\/ \u5fc5\u987b\u663e\u5f0f\u5305\u542b&#xff0c;\u63d0\u4f9bSerial\u5bf9\u8c61\u53camillis()\u7b49\u57fa\u7840\u51fd\u6570<\/p>\n<p>\/**<br \/>\n * &#064;brief \u521d\u59cb\u5316\u4e32\u53e3\u901a\u4fe1\u6a21\u5757<br \/>\n * &#064;param baudRate \u4e32\u53e3\u6ce2\u7279\u7387&#xff0c;\u9ed8\u8ba4\u4e3a115200bps<br \/>\n * &#064;note \u6b64\u51fd\u6570\u4ec5\u6267\u884c\u4e00\u6b21&#xff0c;\u5e94\u5728setup()\u4e2d\u8c03\u7528<br \/>\n *\/<br \/>\nvoid serialInit(uint32_t baudRate &#061; 115200);<\/p>\n<p>\/**<br \/>\n * &#064;brief \u6253\u5370\u5e26\u65f6\u95f4\u6233\u7684\u8c03\u8bd5\u4fe1\u606f<br \/>\n * &#064;param message \u5f85\u6253\u5370\u7684\u5b57\u7b26\u4e32\u6d88\u606f<br \/>\n * &#064;note \u65f6\u95f4\u6233\u4e3a\u7cfb\u7edf\u4e0a\u7535\u540e\u6beb\u79d2\u6570&#xff0c;\u683c\u5f0f\u4e3a&#034;[12345] message&#034;<br \/>\n *\/<br \/>\nvoid serialPrint(const String&amp; message);<\/p>\n<p>#endif \/\/ SERIAL_H<\/p>\n<p>\n \u6b64\u5904\u6709\u4e09\u4e2a\u5173\u952e\u8bbe\u8ba1\u51b3\u7b56\u9700\u6df1\u5165\u7406\u89e3&#xff1a;<\/p>\n<p> &#8211;<\/p>\n<p>   #include &lt;Arduino.h&gt;<\/p>\n<p>  \u7684\u4e0d\u53ef\u7701\u7565\u6027<\/p>\n<p> &#xff1a;ESP8266 Arduino Core\u4e2d&#xff0c;<\/p>\n<p>  Serial<\/p>\n<p> \u5bf9\u8c61\u3001<\/p>\n<p>  String<\/p>\n<p> \u7c7b\u3001<\/p>\n<p>  millis()<\/p>\n<p> \u51fd\u6570\u5747\u5b9a\u4e49\u4e8e\u6b64\u5934\u6587\u4ef6\u3002\u82e5\u9057\u6f0f\u6b64\u884c&#xff0c;\u7f16\u8bd1\u5668\u5c06\u62a5\u9519<\/p>\n<p>  &#039;Serial&#039; was not declared in this scope<\/p>\n<p> \u6216<\/p>\n<p>  &#039;String&#039; does not name a type<\/p>\n<p> \u3002\u8fd9\u4e0eSTM32 HAL\u5e93\u4e2d\u5fc5\u987b\u5305\u542b<\/p>\n<p>  stm32f1xx_hal.h<\/p>\n<p> \u540c\u7406&#xff0c;\u662f\u5e73\u53f0SDK\u7684\u5f3a\u5236\u4f9d\u8d56\u3002<\/p>\n<p> &#8211;<\/p>\n<p>  \u9ed8\u8ba4\u53c2\u6570\u7684\u5de5\u7a0b\u4ef7\u503c<\/p>\n<p> &#xff1a;<\/p>\n<p>  serialInit(uint32_t baudRate &#061; 115200)<\/p>\n<p> \u91c7\u7528C&#043;&#043;\u9ed8\u8ba4\u53c2\u6570\u8bed\u6cd5\u3002\u6b64\u4e3e\u4f7f\u8c03\u7528\u7aef\u4ee3\u7801\u6781\u5ea6\u7b80\u6d01&#xff1a;<\/p>\n<p>  serialInit()<\/p>\n<p> \u5373\u53ef\u5b8c\u6210\u521d\u59cb\u5316&#xff0c;\u65e0\u9700\u8bb0\u5fc6\u6ce2\u7279\u7387\u6570\u503c\u3002\u66f4\u91cd\u8981\u7684\u662f&#xff0c;\u5b83\u5b9e\u73b0\u4e86<\/p>\n<p>  \u914d\u7f6e\u4e0e\u5b9e\u73b0\u7684\u89e3\u8026<\/p>\n<p> \u2014\u2014\u82e5\u672a\u6765\u9700\u7edf\u4e00\u8c03\u6574\u6240\u6709\u6a21\u5757\u6ce2\u7279\u7387&#xff0c;\u4ec5\u9700\u4fee\u6539\u5934\u6587\u4ef6\u4e2d\u9ed8\u8ba4\u503c&#xff0c;\u6240\u6709\u8c03\u7528\u70b9\u81ea\u52a8\u751f\u6548&#xff0c;\u675c\u7edd\u4e86\u6563\u843d\u5728\u5404\u5904\u7684\u9b54\u6cd5\u6570\u5b57&#xff08;Magic Number&#xff09;\u5e26\u6765\u7684\u7ef4\u62a4\u707e\u96be\u3002<\/p>\n<p> &#8211;<\/p>\n<p>   const String&amp;<\/p>\n<p>  \u53c2\u6570\u4f20\u9012\u7684\u6548\u7387\u8003\u91cf<\/p>\n<p> &#xff1a;<\/p>\n<p>  serialPrint<\/p>\n<p> \u63a5\u6536<\/p>\n<p>  const String&amp;<\/p>\n<p> \u800c\u975e<\/p>\n<p>  String<\/p>\n<p> \u6216<\/p>\n<p>  const char*<\/p>\n<p> \u3002\u524d\u8005\u907f\u514d<\/p>\n<p>  String<\/p>\n<p> \u5bf9\u8c61\u62f7\u8d1d\u5f00\u9500&#xff08;\u5c24\u5176\u5bf9\u957f\u65e5\u5fd7\u5b57\u7b26\u4e32&#xff09;&#xff0c;\u540e\u8005\u5219\u786e\u4fdd\u51fd\u6570\u53ef\u63a5\u53d7\u5b57\u9762\u91cf&#xff08;\u5982<\/p>\n<p>  serialPrint(&#034;Hello&#034;)<\/p>\n<p> &#xff09;\u53ca<\/p>\n<p>  String<\/p>\n<p> \u53d8\u91cf&#xff08;\u5982<\/p>\n<p>  String msg &#061; &#034;Sensor OK&#034;; serialPrint(msg)<\/p>\n<p> &#xff09;&#xff0c;\u517c\u987e\u7075\u6d3b\u6027\u4e0e\u6027\u80fd\u3002\u82e5\u4f7f\u7528<\/p>\n<p>  const char*<\/p>\n<p> &#xff0c;\u5219\u9700\u989d\u5916\u5904\u7406<\/p>\n<p>  String::c_str()<\/p>\n<p> \u8f6c\u6362&#xff0c;\u589e\u52a0\u8c03\u7528\u590d\u6742\u5ea6\u3002\n<\/p>\n<h4>\n 1.4 \u6e90\u6587\u4ef6\u5b9e\u73b0\u4e0e\u786c\u4ef6\u521d\u59cb\u5316\u539f\u7406<br \/>\n<\/h4>\n<p>  serial.cpp<\/p>\n<p> \u8d1f\u8d23\u5c06\u5934\u6587\u4ef6\u58f0\u660e\u8f6c\u5316\u4e3a\u53ef\u6267\u884c\u4ee3\u7801\u3002\u5176\u5185\u5bb9\u9700\u4e25\u683c\u9075\u5faa\u63a5\u53e3\u5951\u7ea6&#xff0c;\u5e76\u7cbe\u786e\u6620\u5c04\u5230ESP8266\u786c\u4ef6\u884c\u4e3a&#xff1a;\n<\/p>\n<p>#include &#034;serial.h&#034;<\/p>\n<p>void serialInit(uint32_t baudRate) {<br \/>\n    \/\/ ESP8266\u7684Serial\u5bf9\u8c61\u5bf9\u5e94UART0&#xff08;GPIO1\/TX, GPIO3\/RX&#xff09;<br \/>\n    \/\/ \u8c03\u7528Arduino Core\u5c01\u88c5\u7684\u5e95\u5c42\u521d\u59cb\u5316\u51fd\u6570<br \/>\n    Serial.begin(baudRate);<br \/>\n}<\/p>\n<p>void serialPrint(const String&amp; message) {<br \/>\n    \/\/ \u83b7\u53d6\u7cfb\u7edf\u8fd0\u884c\u65f6\u95f4\u6233&#xff08;\u6beb\u79d2\u7ea7&#xff09;<br \/>\n    unsigned long timestamp &#061; millis();<\/p>\n<p>    \/\/ \u6784\u5efa\u5e26\u65f6\u95f4\u6233\u7684\u5b8c\u6574\u65e5\u5fd7\u884c&#xff1a;&#034;[12345] message&#034;<br \/>\n    \/\/ \u4f7f\u7528String\u7c7b\u62fc\u63a5&#xff0c;\u907f\u514dC\u98ce\u683csprintf\u7684\u6808\u6ea2\u51fa\u98ce\u9669<br \/>\n    String logLine &#061; &#034;[&#034; &#043; String(timestamp) &#043; &#034;] &#034; &#043; message;<\/p>\n<p>    \/\/ \u8f93\u51fa\u81f3\u4e32\u53e3<br \/>\n    Serial.println(logLine);<br \/>\n}<\/p>\n<p>\n \u8fd9\u6bb5\u5b9e\u73b0\u80cc\u540e\u8574\u542b\u7740\u91cd\u8981\u7684\u786c\u4ef6\u4e0e\u8f6f\u4ef6\u534f\u540c\u903b\u8f91&#xff1a;<\/p>\n<p> &#8211;<\/p>\n<p>   Serial<\/p>\n<p>  \u5bf9\u8c61\u7684\u672c\u8d28<\/p>\n<p> &#xff1a;\u5728ESP8266 Arduino Core\u4e2d&#xff0c;<\/p>\n<p>  Serial<\/p>\n<p> \u662f\u9884\u5b9a\u4e49\u7684\u5168\u5c40\u5bf9\u8c61&#xff0c;\u7c7b\u578b\u4e3a<\/p>\n<p>  HardwareSerial<\/p>\n<p> &#xff0c;\u5185\u90e8\u7ed1\u5b9a\u81f3UART0\u5916\u8bbe\u3002\u5176<\/p>\n<p>  begin()<\/p>\n<p> \u65b9\u6cd5\u6700\u7ec8\u8c03\u7528ESP8266 SDK\u7684<\/p>\n<p>  uart_setup()<\/p>\n<p> \u51fd\u6570&#xff0c;\u914d\u7f6eUART\u5bc4\u5b58\u5668&#xff08;\u5982<\/p>\n<p>  UART_CLKDIV<\/p>\n<p> \u8bbe\u7f6e\u5206\u9891\u7cfb\u6570\u3001<\/p>\n<p>  UART_CONF0<\/p>\n<p> \u914d\u7f6e\u6570\u636e\u4f4d\/\u505c\u6b62\u4f4d\/\u6821\u9a8c\u4f4d&#xff09;\u3002\u7528\u6237\u65e0\u9700\u63a5\u89e6\u5bc4\u5b58\u5668&#xff0c;\u4f46\u5fc5\u987b\u7406\u89e3<\/p>\n<p>  Serial.begin()<\/p>\n<p> \u5373\u662f\u5bf9UART0\u7684\u5b8c\u6574\u521d\u59cb\u5316&#xff0c;\u5305\u62ec\u65f6\u949f\u4f7f\u80fd\u3001\u5f15\u811a\u590d\u7528&#xff08;GPIO1\/GPIO3&#xff09;\u3001FIFO\u4f7f\u80fd\u7b49\u5e95\u5c42\u64cd\u4f5c\u3002<\/p>\n<p> &#8211;<\/p>\n<p>   millis()<\/p>\n<p>  \u7684\u65f6\u95f4\u57fa\u51c6\u6765\u6e90<\/p>\n<p> &#xff1a;\u8be5\u51fd\u6570\u8fd4\u56de\u503c\u6e90\u81eaESP8266\u7684<\/p>\n<p>  system_get_time()<\/p>\n<p> &#xff0c;\u5176\u5e95\u5c42\u4f9d\u8d56\u4e8e26MHz\u4e3b\u6676\u632f\u9a71\u52a8\u7684\u786c\u4ef6\u5b9a\u65f6\u5668\u3002<\/p>\n<p>  millis()<\/p>\n<p> \u7cbe\u5ea6\u4e3a\u6beb\u79d2\u7ea7&#xff0c;\u4e14\u5728<\/p>\n<p>  delay()<\/p>\n<p> \u3001WiFi\u8fde\u63a5\u7b49\u963b\u585e\u64cd\u4f5c\u671f\u95f4\u4ecd\u6301\u7eed\u8ba1\u6570&#xff0c;\u662f\u83b7\u53d6\u7cfb\u7edf\u8fd0\u884c\u65f6\u95f4\u7684\u552f\u4e00\u53ef\u9760\u65b9\u5f0f\u3002\u5207\u52ff\u4f7f\u7528<\/p>\n<p>  micros()<\/p>\n<p> \u751f\u6210\u65e5\u5fd7\u65f6\u95f4\u6233&#xff0c;\u56e0\u5176\u5728WiFi\u4e8b\u4ef6\u5904\u7406\u65f6\u53ef\u80fd\u51fa\u73b0\u975e\u7ebf\u6027\u8df3\u53d8\u3002<\/p>\n<p> &#8211;<\/p>\n<p>   String<\/p>\n<p>  \u62fc\u63a5\u7684\u5b89\u5168\u6027\u6743\u8861<\/p>\n<p> &#xff1a;\u867d\u7136<\/p>\n<p>  String<\/p>\n<p> \u7c7b\u5728\u5185\u5b58\u53d7\u9650\u8bbe\u5907\u4e0a\u5b58\u5728\u788e\u7247\u5316\u98ce\u9669&#xff0c;\u4f46\u5728\u6b64\u573a\u666f\u4e0b\u662f\u5408\u7406\u9009\u62e9\u3002\u539f\u56e0\u6709\u4e09&#xff1a;1&#xff09;\u65e5\u5fd7\u5b57\u7b26\u4e32\u901a\u5e38\u8f83\u77ed&#xff08;&lt;64\u5b57\u7b26&#xff09;&#xff0c;\u5806\u5206\u914d\u5f00\u9500\u53ef\u63a7&#xff1b;2&#xff09;<\/p>\n<p>  Serial.println()<\/p>\n<p> \u672c\u8eab\u5df2\u6d89\u53ca\u52a8\u6001\u5185\u5b58\u64cd\u4f5c&#xff0c;\u989d\u5916\u62fc\u63a5\u672a\u663e\u8457\u589e\u52a0\u8d1f\u62c5&#xff1b;3&#xff09;\u76f8\u6bd4<\/p>\n<p>  snprintf()<\/p>\n<p> \u9700\u9884\u4f30\u7f13\u51b2\u533a\u5927\u5c0f&#xff08;\u6613\u5bfc\u81f4\u622a\u65ad\u6216\u6ea2\u51fa&#xff09;&#xff0c;<\/p>\n<p>  String<\/p>\n<p> \u63d0\u4f9b\u4e86\u66f4\u5b89\u5168\u7684\u62bd\u8c61\u3002\u82e5\u9879\u76ee\u540e\u671f\u9700\u6781\u81f4\u4f18\u5316&#xff0c;\u53ef\u6539\u7528\u9759\u6001\u5b57\u7b26\u6570\u7ec4&#043;<\/p>\n<p>  snprintf()<\/p>\n<p> &#xff0c;\u4f46\u9700\u4e25\u683c\u6821\u9a8c\u957f\u5ea6\u3002\n<\/p>\n<h4>\n 1.5 \u4e3b\u7a0b\u5e8f\u96c6\u6210\u4e0e\u6784\u5efa\u6d41\u7a0b<br \/>\n<\/h4>\n<p>\n \u6a21\u5757\u7f16\u5199\u5b8c\u6bd5\u540e&#xff0c;\u9700\u5c06\u5176\u63a5\u5165\u4e3b\u7a0b\u5e8f\u6846\u67b6\u3002Arduino\u8349\u56fe&#xff08;<\/p>\n<p>  .ino<\/p>\n<p> \u6587\u4ef6&#xff09;\u672c\u8d28\u662fC&#043;&#043;\u6e90\u6587\u4ef6&#xff0c;\u9700\u901a\u8fc7\u6807\u51c6<\/p>\n<p>  #include<\/p>\n<p> \u6307\u4ee4\u5f15\u5165\u6a21\u5757\u5934\u6587\u4ef6&#xff1a;\n<\/p>\n<p>#include &#034;serial.h&#034;  \/\/ \u663e\u5f0f\u5305\u542b\u81ea\u5b9a\u4e49\u6a21\u5757\u5934\u6587\u4ef6<\/p>\n<p>void setup() {<br \/>\n    \/\/ \u521d\u59cb\u5316\u4e32\u53e3\u6a21\u5757&#xff08;\u4f7f\u7528\u9ed8\u8ba4\u6ce2\u7279\u7387115200&#xff09;<br \/>\n    serialInit();<\/p>\n<p>    \/\/ \u6253\u5370\u542f\u52a8\u65e5\u5fd7<br \/>\n    serialPrint(&#034;Weather Clock OLED v1.0 initialized&#034;);<br \/>\n}<\/p>\n<p>void loop() {<br \/>\n    \/\/ \u4e3b\u5faa\u73af\u4e2d\u53ef\u968f\u65f6\u8c03\u7528\u65e5\u5fd7\u529f\u80fd<br \/>\n    \/\/ serialPrint(&#034;Loop iteration running&#8230;&#034;);<br \/>\n    delay(1000); \/\/ \u793a\u4f8b\u5ef6\u65f6<br \/>\n}<\/p>\n<p>\n \u6b64\u96c6\u6210\u8fc7\u7a0b\u4f53\u73b0\u4e24\u4e2a\u6838\u5fc3\u5de5\u7a0b\u89c4\u8303&#xff1a;<\/p>\n<p> &#8211;<\/p>\n<p>  \u5934\u6587\u4ef6\u5305\u542b\u987a\u5e8f<\/p>\n<p> &#xff1a;<\/p>\n<p>  #include &#034;serial.h&#034;<\/p>\n<p> \u5fc5\u987b\u7f6e\u4e8e<\/p>\n<p>  #include &lt;Arduino.h&gt;<\/p>\n<p> \u4e4b\u540e&#xff08;\u82e5\u5b58\u5728&#xff09;\u3002\u56e0<\/p>\n<p>  serial.h<\/p>\n<p> \u5185\u90e8\u4f9d\u8d56<\/p>\n<p>  Arduino.h<\/p>\n<p> &#xff0c;\u82e5\u987a\u5e8f\u98a0\u5012&#xff0c;\u7f16\u8bd1\u5668\u5728\u89e3\u6790<\/p>\n<p>  serial.h<\/p>\n<p> \u65f6\u672a\u77e5<\/p>\n<p>  String<\/p>\n<p> \u5b9a\u4e49&#xff0c;\u5c06\u62a5\u9519\u3002\u6b64\u89c4\u5219\u4e0eSTM32\u5de5\u7a0b\u4e2d<\/p>\n<p>  #include &#034;stm32f1xx_hal.h&#034;<\/p>\n<p> \u5fc5\u987b\u5728\u6240\u6709\u7528\u6237\u5934\u6587\u4ef6\u4e4b\u524d\u76f8\u540c\u3002<\/p>\n<p> &#8211;<\/p>\n<p>  \u521d\u59cb\u5316\u65f6\u673a\u7684\u786e\u5b9a\u6027<\/p>\n<p> &#xff1a;<\/p>\n<p>  serialInit()<\/p>\n<p> \u5fc5\u987b\u5728<\/p>\n<p>  setup()<\/p>\n<p> \u4e2d\u9996\u6b21\u8c03\u7528&#xff0c;\u4e14\u65e9\u4e8e\u4efb\u4f55\u4f9d\u8d56\u4e32\u53e3\u8f93\u51fa\u7684\u64cd\u4f5c\u3002<\/p>\n<p>  setup()<\/p>\n<p> \u51fd\u6570\u7531Arduino\u6846\u67b6\u5728<\/p>\n<p>  main()<\/p>\n<p> \u4e2d\u8c03\u7528&#xff0c;\u5176\u6267\u884c\u5177\u6709\u7edd\u5bf9\u7684\u5355\u6b21\u6027\u4e0e\u786e\u5b9a\u6027&#xff0c;\u7b26\u5408\u5d4c\u5165\u5f0f\u7cfb\u7edf\u201c\u521d\u59cb\u5316-\u8fd0\u884c\u201d\u4e24\u9636\u6bb5\u6a21\u578b\u3002\u82e5\u5728<\/p>\n<p>  loop()<\/p>\n<p> \u4e2d\u53cd\u590d\u8c03\u7528<\/p>\n<p>  serialInit()<\/p>\n<p> &#xff0c;\u5c06\u5bfc\u81f4UART\u5916\u8bbe\u88ab\u91cd\u590d\u914d\u7f6e&#xff0c;\u53ef\u80fd\u5f15\u53d1\u901a\u4fe1\u5f02\u5e38\u3002\n<\/p>\n<p>\n \u6784\u5efa&#xff08;\u7f16\u8bd1&#xff09;\u4e0e\u4e0a\u4f20\u6d41\u7a0b\u9700\u4e0e\u786c\u4ef6\u73af\u5883\u7cbe\u786e\u5339\u914d&#xff1a;<\/p>\n<p> 1.<\/p>\n<p>  \u5f00\u53d1\u677f\u9009\u62e9<\/p>\n<p> &#xff1a;\u5728Arduino IDE\u7684\u201c\u5de5\u5177\u2192\u5f00\u53d1\u677f\u201d\u83dc\u5355\u4e2d&#xff0c;\u5fc5\u987b\u9009\u62e9\u201cLOLIN(WEMOS) D1 mini Lite\u201d\u3002\u6b64\u9009\u9879\u5bf9\u5e94ESP8266-01S\u6a21\u7ec4&#xff08;1MB Flash&#xff09;&#xff0c;\u5176Flash\u5e03\u5c40\u3001Bootloader\u7248\u672c\u4e0e\u6807\u51c6D1 mini\u4e0d\u540c\u3002\u82e5\u9009\u9519&#xff0c;\u7f16\u8bd1\u751f\u6210\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u5c06\u65e0\u6cd5\u6b63\u786e\u52a0\u8f7d&#xff0c;\u8868\u73b0\u4e3a\u4e0a\u4f20\u540e\u65e0\u4efb\u4f55\u4e32\u53e3\u8f93\u51fa\u3002<\/p>\n<p> 2.<\/p>\n<p>  \u7aef\u53e3\u8bc6\u522b<\/p>\n<p> &#xff1a;\u8fde\u63a5USB\u7ebf\u540e&#xff0c;\u7cfb\u7edf\u5206\u914d\u7684\u4e32\u53e3\u540d\u79f0\u56e0\u64cd\u4f5c\u7cfb\u7edf\u800c\u5f02&#xff1a;Windows\u901a\u5e38\u4e3a<\/p>\n<p>  COMx<\/p>\n<p> &#xff08;\u5982<\/p>\n<p>  COM4<\/p>\n<p> &#xff09;&#xff0c;macOS\u4e3a<\/p>\n<p>  \/dev\/cu.usbserial-xxxx<\/p>\n<p> &#xff0c;Linux\u4e3a<\/p>\n<p>  \/dev\/ttyUSB0<\/p>\n<p> \u3002\u5173\u952e\u5728\u4e8e<\/p>\n<p>  \u7aef\u53e3\u53f7\u5fc5\u987b\u4e0e\u786c\u4ef6\u7269\u7406\u8fde\u63a5\u4e00\u4e00\u5bf9\u5e94<\/p>\n<p> \u3002\u53ef\u901a\u8fc7\u62d4\u63d2USB\u7ebf\u5e76\u89c2\u5bdf\u8bbe\u5907\u7ba1\u7406\u5668&#xff08;Windows&#xff09;\u6216<\/p>\n<p>  dmesg | tail<\/p>\n<p> &#xff08;Linux\/macOS&#xff09;\u8f93\u51fa\u6765\u786e\u8ba4\u3002<\/p>\n<p> 3.<\/p>\n<p>  \u6ce2\u7279\u7387\u4e00\u81f4\u6027<\/p>\n<p> &#xff1a;IDE\u5185\u7f6e\u4e32\u53e3\u76d1\u89c6\u5668&#xff08;Serial Monitor&#xff09;\u7684\u6ce2\u7279\u7387\u8bbe\u7f6e&#xff08;\u53f3\u4e0b\u89d2\u4e0b\u62c9\u6846&#xff09;\u5fc5\u987b\u4e0e<\/p>\n<p>  serialInit()<\/p>\n<p> \u53c2\u6570\u5b8c\u5168\u4e00\u81f4&#xff08;\u9ed8\u8ba4115200&#xff09;\u3002\u82e5\u76d1\u89c6\u5668\u8bbe\u4e3a9600\u800c\u4ee3\u7801\u8bbe\u4e3a115200&#xff0c;\u63a5\u6536\u5230\u7684\u6570\u636e\u5c06\u4e3a\u4e71\u7801&#xff0c;\u8fd9\u662fUART\u901a\u4fe1\u4e2d\u6700\u5e38\u89c1\u7684\u8c03\u8bd5\u9677\u9631\u3002\n<\/p>\n<h4>\n 1.6 \u4e32\u53e3\u76d1\u89c6\u5668\u8c03\u8bd5\u4e0e\u65e5\u5fd7\u9a8c\u8bc1<br \/>\n<\/h4>\n<p>\n \u4e32\u53e3\u76d1\u89c6\u5668\u662f\u5d4c\u5165\u5f0f\u5f00\u53d1\u8005\u7684\u201c\u7b2c\u4e00\u53cc\u773c\u775b\u201d&#xff0c;\u5176\u6b63\u786e\u4f7f\u7528\u662f\u9a8c\u8bc1\u6a21\u5757\u529f\u80fd\u7684\u9ec4\u91d1\u6807\u51c6\u3002\u542f\u52a8\u76d1\u89c6\u5668\u540e&#xff0c;\u9700\u6267\u884c\u4ee5\u4e0b\u9a8c\u8bc1\u6b65\u9aa4&#xff1a;\n<\/p>\n<li>\n<p>   \u590d\u4f4d\u89e6\u53d1<\/p>\n<p>  &#xff1a;\u6309\u4e0bWemos D1 mini Lite\u677f\u8f7d\u7684<\/p>\n<p>   RST<\/p>\n<p>  \u6309\u94ae&#xff08;\u9760\u8fd1USB\u63a5\u53e3\u7684\u5c0f\u5706\u94ae&#xff09;\u3002\u6b64\u64cd\u4f5c\u5f3a\u5236ESP8266\u786c\u4ef6\u590d\u4f4d&#xff0c;\u91cd\u542f\u56fa\u4ef6\u3002\u590d\u4f4d\u77ac\u95f4&#xff0c;Bootloader\u4f1a\u8f93\u51fa\u542f\u52a8\u4fe1\u606f&#xff08;\u5982<\/p>\n<p>   ets Jan  8 2013,rst cause:2, boot mode:(3,7)<\/p>\n<p>  &#xff09;&#xff0c;\u968f\u540e<\/p>\n<p>   setup()<\/p>\n<p>  \u6267\u884c&#xff0c;<\/p>\n<p>   serialPrint()<\/p>\n<p>  \u8f93\u51fa\u9996\u6761\u65e5\u5fd7\u3002\n <\/li>\n<li>\n<p>   \u65e5\u5fd7\u683c\u5f0f\u89e3\u6790<\/p>\n<p>  &#xff1a;\u6210\u529f\u65e5\u5fd7\u5f62\u5982<\/p>\n<p>   [123] Weather Clock OLED v1.0 initialized<\/p>\n<p>  \u3002\u65b9\u62ec\u53f7\u5185\u6570\u503c\u4e3a<\/p>\n<p>   millis()<\/p>\n<p>  \u8fd4\u56de\u503c&#xff0c;\u5355\u4f4d\u6beb\u79d2&#xff0c;\u8868\u793a\u4ece\u4e0a\u7535\u5230\u8be5\u884c\u6253\u5370\u7684\u7cbe\u786e\u8017\u65f6\u3002\u6b64\u65f6\u95f4\u6233\u662f\u5b9a\u4f4d\u542f\u52a8\u74f6\u9888\u7684\u5173\u952e\u2014\u2014\u82e5\u6570\u503c\u5f02\u5e38\u5927&#xff08;\u5982<\/p>\n<p>   [5000]<\/p>\n<p>  &#xff09;&#xff0c;\u8868\u660e<\/p>\n<p>   setup()<\/p>\n<p>  \u4e2d\u5b58\u5728\u8017\u65f6\u64cd\u4f5c&#xff08;\u5982WiFi\u8fde\u63a5\u963b\u585e&#xff09;&#xff0c;\u9700\u8fdb\u4e00\u6b65\u4f18\u5316\u3002\n <\/li>\n<li>\n<p>   \u5b9e\u65f6\u6027\u9a8c\u8bc1<\/p>\n<p>  &#xff1a;\u5728<\/p>\n<p>   loop()<\/p>\n<p>  \u4e2d\u6dfb\u52a0<\/p>\n<p>   serialPrint(&#034;Tick&#034;); delay(1000);<\/p>\n<p>  &#xff0c;\u89c2\u5bdf\u76d1\u89c6\u5668\u662f\u5426\u6bcf\u79d2\u7a33\u5b9a\u8f93\u51fa\u4e00\u884c\u3002\u82e5\u51fa\u73b0\u4e22\u884c\u3001\u5ef6\u8fdf\u6216\u4e71\u7801&#xff0c;\u9700\u68c0\u67e5&#xff1a;a) USB\u7ebf\u8d28\u91cf&#xff08;\u52a3\u8d28\u7ebf\u7f06\u5bfc\u81f4\u4fe1\u53f7\u5b8c\u6574\u6027\u4e0b\u964d&#xff09;&#xff1b;b) \u76d1\u89c6\u5668\u7f13\u51b2\u533a\u6ea2\u51fa&#xff08;\u5173\u95ed\u76d1\u89c6\u5668\u518d\u6253\u5f00\u53ef\u6e05\u7a7a&#xff09;&#xff1b;c)<\/p>\n<p>   Serial.println()<\/p>\n<p>  \u8c03\u7528\u8fc7\u4e8e\u9891\u7e41&#xff08;ESP8266 UART\u53d1\u9001FIFO\u4ec5128\u5b57\u8282&#xff0c;\u9ad8\u901f\u8fde\u7eed\u8c03\u7528\u53ef\u80fd\u5bfc\u81f4\u963b\u585e&#xff09;\u3002\n <\/li>\n<h4>\n 1.7 \u5de5\u7a0b\u5b9e\u8df5\u4e2d\u7684\u5178\u578b\u9677\u9631\u4e0e\u89c4\u907f\u7b56\u7565<br \/>\n<\/h4>\n<p>\n \u5728\u5b9e\u9645\u5f00\u53d1\u4e2d&#xff0c;\u4e32\u53e3\u6a21\u5757\u5e38\u56e0\u7ec6\u5fae\u758f\u5ffd\u5bfc\u81f4\u8c03\u8bd5\u5931\u8d25\u3002\u4ee5\u4e0b\u662f\u57fa\u4e8e\u771f\u5b9e\u9879\u76ee\u7ecf\u9a8c\u7684\u9ad8\u9891\u95ee\u9898\u6e05\u5355\u53ca\u89e3\u51b3\u65b9\u6848&#xff1a;\n<\/p>\n<table>\n<tr>\n    \u95ee\u9898\u73b0\u8c61<\/p>\n<p>    \u6839\u672c\u539f\u56e0<\/p>\n<p>    \u89e3\u51b3\u65b9\u6848<br \/>\n   <\/tr>\n<tbody>\n<tr>\n<td>\n<p>     \u4e32\u53e3\u76d1\u89c6\u5668\u65e0\u4efb\u4f55\u8f93\u51fa<\/p>\n<\/td>\n<td>\n    1. \u5f00\u53d1\u677f\u578b\u53f7\u9009\u9519&#xff08;\u5982\u9009\u6210Generic ESP8266&#xff09;<\/p>\n<p>    2. USB\u9a71\u52a8\u672a\u5b89\u88c5&#xff08;CH340\u82af\u7247\u9700\u624b\u52a8\u88c5\u9a71\u52a8&#xff09;<\/p>\n<p>    3.<\/p>\n<p>     serialInit()<\/p>\n<p>    \u672a\u5728<\/p>\n<p>     setup()<\/p>\n<p>    \u4e2d\u8c03\u7528\n   <\/td>\n<td>\n    1. \u4e25\u683c\u6838\u5bf9IDE\u5f00\u53d1\u677f\u9009\u9879<\/p>\n<p>    2. Windows\u4e0b\u68c0\u67e5\u8bbe\u5907\u7ba1\u7406\u5668\u662f\u5426\u6709\u201c\u672a\u77e5\u8bbe\u5907\u201d&#xff0c;\u4e0b\u8f7dCH340\u9a71\u52a8\u5b89\u88c5<\/p>\n<p>    3. \u5728<\/p>\n<p>     setup()<\/p>\n<p>    \u9996\u884c\u6dfb\u52a0<\/p>\n<p>     Serial.begin(115200); Serial.println(&#034;DEBUG&#034;);<\/p>\n<p>    \u5feb\u901f\u9a8c\u8bc1\u786c\u4ef6\u94fe\u8def\n   <\/td>\n<\/tr>\n<tr>\n<td>\n<p>     \u65e5\u5fd7\u663e\u793a\u4e71\u7801&#xff08;\u5982<\/p>\n<p>      [123] Hello<\/p>\n<p>     &#xff09;<\/p>\n<\/td>\n<td>\n    \u76d1\u89c6\u5668\u6ce2\u7279\u7387\u4e0e\u4ee3\u7801\u8bbe\u7f6e\u4e0d\u4e00\u81f4\n   <\/td>\n<td>\n    \u5173\u95ed\u76d1\u89c6\u5668&#xff0c;\u786e\u8ba4\u4ee3\u7801\u4e2d<\/p>\n<p>     serialInit()<\/p>\n<p>    \u53c2\u6570&#xff08;\u5982115200&#xff09;&#xff0c;\u518d\u4ee5\u76f8\u540c\u6ce2\u7279\u7387\u91cd\u542f\u76d1\u89c6\u5668\n   <\/td>\n<\/tr>\n<tr>\n<td>\n<p>     \u65f6\u95f4\u6233\u6570\u503c\u6052\u4e3a0\u6216\u6781\u5c0f<\/p>\n<\/td>\n<td>\n<p>     millis()<\/p>\n<p>    \u5728<\/p>\n<p>     Serial.begin()<\/p>\n<p>    \u524d\u88ab\u8c03\u7528&#xff0c;\u6b64\u65f6\u7cfb\u7edf\u8ba1\u65f6\u5668\u672a\u5c31\u7eea\n   <\/td>\n<td>\n    \u786e\u4fdd<\/p>\n<p>     serialPrint()<\/p>\n<p>    \u8c03\u7528\u4e25\u683c\u5728<\/p>\n<p>     serialInit()<\/p>\n<p>    \u4e4b\u540e&#xff0c;<\/p>\n<p>     setup()<\/p>\n<p>    \u4e2d\u6309<\/p>\n<p>     serialInit()<\/p>\n<p>    \u2192<\/p>\n<p>     serialPrint()<\/p>\n<p>    \u987a\u5e8f\u4e66\u5199\n   <\/td>\n<\/tr>\n<tr>\n<td>\n<p>      String<\/p>\n<p>     \u62fc\u63a5\u540e\u5185\u5b58\u8017\u5c3d&#xff0c;\u8bbe\u5907\u91cd\u542f<\/p>\n<\/td>\n<td>\n    \u9891\u7e41\u8c03\u7528<\/p>\n<p>     serialPrint()<\/p>\n<p>    \u4e14\u6d88\u606f\u8fc7\u957f&#xff0c;\u5bfc\u81f4\u5806\u5185\u5b58\u788e\u7247\u5316\n   <\/td>\n<td>\n    1. \u9650\u5236\u5355\u6b21\u65e5\u5fd7\u957f\u5ea6&#xff08;&lt;32\u5b57\u7b26&#xff09;<\/p>\n<p>    2. \u6539\u7528<\/p>\n<p>     Serial.printf(&#034;[%&#034; PRIu32 &#034;] %s\\\\n&#034;, millis(), message.c_str());<\/p>\n<p>    &#xff08;\u9700<\/p>\n<p>     #include &lt;inttypes.h&gt;<\/p>\n<p>    &#xff09;<\/p>\n<p>    3. \u5bf9\u5173\u952e\u65e5\u5fd7\u542f\u7528\u6761\u4ef6\u7f16\u8bd1&#xff08;<\/p>\n<p>     #ifdef DEBUG_LOG<\/p>\n<p>    &#xff09;\n   <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\n \u4e00\u4e2a\u503c\u5f97\u94ed\u8bb0\u7684\u5b9e\u6218\u6559\u8bad&#xff1a;\u67d0\u6b21\u9879\u76ee\u4e2d&#xff0c;\u56e0\u5728<\/p>\n<p>  loop()<\/p>\n<p> \u4e2d\u8fde\u7eed\u8c03\u7528<\/p>\n<p>  serialPrint(String(&#034;Sensor: &#034;) &#043; sensorValue)<\/p>\n<p> &#xff08;<\/p>\n<p>  sensorValue<\/p>\n<p> \u4e3a\u6d6e\u70b9\u6570&#xff09;&#xff0c;\u5bfc\u81f4<\/p>\n<p>  String<\/p>\n<p> \u5bf9\u8c61\u9891\u7e41\u6784\u9020\/\u6790\u6784&#xff0c;\u6700\u7ec8\u89e6\u53d1ESP8266\u7684<\/p>\n<p>  Out of memory<\/p>\n<p> \u770b\u95e8\u72d7\u590d\u4f4d\u3002\u89e3\u51b3\u65b9\u6848\u662f\u9884\u5148\u8ba1\u7b97<\/p>\n<p>  sensorValue<\/p>\n<p> \u4e3a\u6574\u6570\u6beb\u4f0f\u503c&#xff0c;\u5e76\u4f7f\u7528<\/p>\n<p>  Serial.printf()<\/p>\n<p> \u76f4\u63a5\u683c\u5f0f\u5316\u8f93\u51fa&#xff0c;\u5f7b\u5e95\u89c4\u907f<\/p>\n<p>  String<\/p>\n<p> \u52a8\u6001\u5185\u5b58\u7ba1\u7406\u3002\n<\/p>\n<h4>\n 1.8 \u6a21\u5757\u7684\u53ef\u6269\u5c55\u6027\u8bbe\u8ba1\u5c55\u671b<br \/>\n<\/h4>\n<p>\n \u5f53\u524d\u4e32\u53e3\u6a21\u5757\u5df2\u6ee1\u8db3\u57fa\u7840\u8c03\u8bd5\u9700\u6c42&#xff0c;\u4f46\u5176\u67b6\u6784\u5929\u7136\u652f\u6301\u5411\u4f01\u4e1a\u7ea7\u65e5\u5fd7\u7cfb\u7edf\u6f14\u8fdb\u3002\u540e\u7eed\u53ef\u5e73\u6ed1\u96c6\u6210\u7684\u529f\u80fd\u5305\u62ec&#xff1a;<\/p>\n<p> &#8211;<\/p>\n<p>  \u65e5\u5fd7\u7b49\u7ea7\u5206\u7ea7<\/p>\n<p> &#xff1a;\u5728<\/p>\n<p>  serialPrint()<\/p>\n<p> \u57fa\u7840\u4e0a\u6269\u5c55<\/p>\n<p>  serialLogError()<\/p>\n<p> \u3001<\/p>\n<p>  serialLogInfo()<\/p>\n<p> &#xff0c;\u901a\u8fc7\u9884\u5904\u7406\u5668\u5b8f&#xff08;<\/p>\n<p>  #define LOG_LEVEL LOG_LEVEL_INFO<\/p>\n<p> &#xff09;\u63a7\u5236\u8f93\u51fa\u7c92\u5ea6&#xff1b;<\/p>\n<p> &#8211;<\/p>\n<p>  \u8f93\u51fa\u76ee\u6807\u91cd\u5b9a\u5411<\/p>\n<p> &#xff1a;\u5b9e\u73b0<\/p>\n<p>  SerialLogger<\/p>\n<p> \u7c7b&#xff0c;\u7ee7\u627f\u81ea<\/p>\n<p>  Stream<\/p>\n<p> &#xff0c;\u4f7f\u5176\u65e2\u80fd\u8f93\u51fa\u5230UART&#xff0c;\u4e5f\u80fd\u8f93\u51fa\u5230SPI Flash\u6216WiFi TCP socket&#xff1b;<\/p>\n<p> &#8211;<\/p>\n<p>  \u73af\u5f62\u7f13\u51b2\u533a<\/p>\n<p> &#xff1a;\u5f53\u4e32\u53e3\u88ab\u5360\u7528&#xff08;\u5982\u7528\u6237\u6b63\u5728\u7528\u76d1\u89c6\u5668&#xff09;\u65f6&#xff0c;\u5c06\u65e5\u5fd7\u6682\u5b58\u4e8eRAM\u73af\u5f62\u7f13\u51b2\u533a&#xff0c;\u5f85\u4e32\u53e3\u7a7a\u95f2\u540e\u6279\u91cf\u53d1\u9001&#xff0c;\u907f\u514d\u4e22\u5931\u5173\u952e\u9519\u8bef\u4fe1\u606f&#xff1b;<\/p>\n<p> &#8211;<\/p>\n<p>  \u7ed3\u6784\u5316\u65e5\u5fd7<\/p>\n<p> &#xff1a;\u5c06<\/p>\n<p>  serialPrint()<\/p>\n<p> \u5347\u7ea7\u4e3a<\/p>\n<p>  serialLog(const char* module, uint8_t level, const char* format, &#8230;)<\/p>\n<p> &#xff0c;\u652f\u6301\u7c7b\u4f3c<\/p>\n<p>  [WIFI][ERR] Connection failed: -202<\/p>\n<p> \u7684\u6807\u51c6\u5316\u683c\u5f0f&#xff0c;\u4fbf\u4e8e\u81ea\u52a8\u5316\u65e5\u5fd7\u5206\u6790\u5de5\u5177\u89e3\u6790\u3002\n<\/p>\n<p>\n \u8fd9\u4e9b\u6269\u5c55\u5747\u4e0d\u7834\u574f\u73b0\u6709API&#xff0c;\u53ea\u9700\u5728<\/p>\n<p>  serial.h<\/p>\n<p> \u4e2d\u65b0\u589e\u51fd\u6570\u58f0\u660e&#xff0c;\u5728<\/p>\n<p>  serial.cpp<\/p>\n<p> \u4e2d\u8865\u5145\u5b9e\u73b0&#xff0c;\u5b8c\u7f8e\u4f53\u73b0\u6a21\u5757\u5316\u8bbe\u8ba1\u7684\u957f\u671f\u4ef7\u503c\u3002\u5bf9\u4e8e\u5929\u6c14\u65f6\u949f\u9879\u76ee&#xff0c;\u5f53\u524d\u7248\u672c\u5df2\u8db3\u591f\u7a33\u5065\u2014\u2014\u5b83\u5c06\u4e32\u53e3\u8fd9\u4e00\u57fa\u7840\u5916\u8bbe&#xff0c;\u4ece\u96f6\u6563\u7684\u8c03\u8bd5\u8bed\u53e5&#xff0c;\u5347\u534e\u4e3a\u4e00\u4e2a\u5177\u6709\u660e\u786e\u804c\u8d23\u3001\u53ef\u9884\u6d4b\u884c\u4e3a\u3001\u6613\u4e8e\u7ef4\u62a4\u7684\u5de5\u7a0b\u7ec4\u4ef6\u3002\u5f53OLED\u6a21\u5757\u3001NTP\u65f6\u95f4\u540c\u6b65\u6a21\u5757\u9646\u7eed\u52a0\u5165\u65f6&#xff0c;\u5b83\u4eec\u5c06\u5171\u4eab\u540c\u4e00\u5957\u65e5\u5fd7\u57fa\u7840\u8bbe\u65bd&#xff0c;\u6574\u4e2a\u7cfb\u7edf\u7684\u53ef\u89c2\u6d4b\u6027\u4e0e\u53ef\u7ef4\u62a4\u6027\u7531\u6b64\u5960\u5b9a\u575a\u5b9e\u6839\u57fa\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u4e32\u53e3\u6a21\u5757\u7684\u5de5\u7a0b\u5316\u8bbe\u8ba1\u4e0e\u5b9e\u73b0\u5728\u5d4c\u5165\u5f0f\u7cfb\u7edf\u5f00\u53d1\u4e2d&#xff0c;\u4e32\u53e3&#xff08;UART&#xff09;\u4e0d\u4ec5\u662f\u8c03\u8bd5\u4fe1\u606f\u8f93\u51fa\u7684\u6838\u5fc3\u901a\u9053&#xff0c;\u66f4\u662f\u7cfb\u7edf\u72b6\u6001\u76d1\u63a7\u3001\u534f\u8bae\u4ea4\u4e92\u548c\u6545\u969c\u8bca\u65ad\u7684\u5173\u952e\u57fa\u7840\u8bbe\u65bd\u3002\u5bf9\u4e8e\u57fa\u4e8eESP8266\u5e73\u53f0\u7684\u5929\u6c14\u65f6\u949f\u9879\u76ee\u800c\u8a00&#xff0c;\u4e32\u53e3\u6a21\u5757\u5e76\u975e\u7b80\u5355\u7684Serial.print()\u8c03\u7528\u96c6\u5408&#xff0c;\u800c\u662f\u4e00\u4e2a\u9700\u8981\u5177\u5907\u660e\u786e\u63a5\u53e3\u5951\u7ea6\u3001\u53ef\u590d\u7528\u6027\u3001\u65f6\u95f4\u6233\u589e\u5f3a\u80fd\u529b&#xff0c;\u5e76\u80fd\u65e0\u7f1d\u878d\u5165\u6574\u4f53\u8f6f\u4ef6\u67b6\u6784\u7684\u72ec\u7acb\u529f\u80fd\u5355\u5143\u3002\u672c\u8282\u5c06\u4ece\u5de5\u7a0b\u5b9e\u8df5\u89d2\u5ea6\u51fa\u53d1&amp;#xff<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[8775,181,1024],"topic":[],"class_list":["post-79067","post","type-post","status-publish","format-standard","hentry","category-server","tag-8775","tag-arduino","tag-esp8266"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>ESP8266\u4e32\u53e3\u6a21\u5757\u5de5\u7a0b\u5316\u8bbe\u8ba1\u4e0e\u5b9e\u73b0 - \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\/79067.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ESP8266\u4e32\u53e3\u6a21\u5757\u5de5\u7a0b\u5316\u8bbe\u8ba1\u4e0e\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"1. \u4e32\u53e3\u6a21\u5757\u7684\u5de5\u7a0b\u5316\u8bbe\u8ba1\u4e0e\u5b9e\u73b0\u5728\u5d4c\u5165\u5f0f\u7cfb\u7edf\u5f00\u53d1\u4e2d&#xff0c;\u4e32\u53e3&#xff08;UART&#xff09;\u4e0d\u4ec5\u662f\u8c03\u8bd5\u4fe1\u606f\u8f93\u51fa\u7684\u6838\u5fc3\u901a\u9053&#xff0c;\u66f4\u662f\u7cfb\u7edf\u72b6\u6001\u76d1\u63a7\u3001\u534f\u8bae\u4ea4\u4e92\u548c\u6545\u969c\u8bca\u65ad\u7684\u5173\u952e\u57fa\u7840\u8bbe\u65bd\u3002\u5bf9\u4e8e\u57fa\u4e8eESP8266\u5e73\u53f0\u7684\u5929\u6c14\u65f6\u949f\u9879\u76ee\u800c\u8a00&#xff0c;\u4e32\u53e3\u6a21\u5757\u5e76\u975e\u7b80\u5355\u7684Serial.print()\u8c03\u7528\u96c6\u5408&#xff0c;\u800c\u662f\u4e00\u4e2a\u9700\u8981\u5177\u5907\u660e\u786e\u63a5\u53e3\u5951\u7ea6\u3001\u53ef\u590d\u7528\u6027\u3001\u65f6\u95f4\u6233\u589e\u5f3a\u80fd\u529b&#xff0c;\u5e76\u80fd\u65e0\u7f1d\u878d\u5165\u6574\u4f53\u8f6f\u4ef6\u67b6\u6784\u7684\u72ec\u7acb\u529f\u80fd\u5355\u5143\u3002\u672c\u8282\u5c06\u4ece\u5de5\u7a0b\u5b9e\u8df5\u89d2\u5ea6\u51fa\u53d1&amp;#xff\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/79067.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-28T14:25:40+00:00\" \/>\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=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/79067.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/79067.html\",\"name\":\"ESP8266\u4e32\u53e3\u6a21\u5757\u5de5\u7a0b\u5316\u8bbe\u8ba1\u4e0e\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-28T14:25:40+00:00\",\"dateModified\":\"2026-02-28T14:25:40+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/79067.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/79067.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/79067.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ESP8266\u4e32\u53e3\u6a21\u5757\u5de5\u7a0b\u5316\u8bbe\u8ba1\u4e0e\u5b9e\u73b0\"}]},{\"@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":"ESP8266\u4e32\u53e3\u6a21\u5757\u5de5\u7a0b\u5316\u8bbe\u8ba1\u4e0e\u5b9e\u73b0 - \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\/79067.html","og_locale":"zh_CN","og_type":"article","og_title":"ESP8266\u4e32\u53e3\u6a21\u5757\u5de5\u7a0b\u5316\u8bbe\u8ba1\u4e0e\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"1. \u4e32\u53e3\u6a21\u5757\u7684\u5de5\u7a0b\u5316\u8bbe\u8ba1\u4e0e\u5b9e\u73b0\u5728\u5d4c\u5165\u5f0f\u7cfb\u7edf\u5f00\u53d1\u4e2d&#xff0c;\u4e32\u53e3&#xff08;UART&#xff09;\u4e0d\u4ec5\u662f\u8c03\u8bd5\u4fe1\u606f\u8f93\u51fa\u7684\u6838\u5fc3\u901a\u9053&#xff0c;\u66f4\u662f\u7cfb\u7edf\u72b6\u6001\u76d1\u63a7\u3001\u534f\u8bae\u4ea4\u4e92\u548c\u6545\u969c\u8bca\u65ad\u7684\u5173\u952e\u57fa\u7840\u8bbe\u65bd\u3002\u5bf9\u4e8e\u57fa\u4e8eESP8266\u5e73\u53f0\u7684\u5929\u6c14\u65f6\u949f\u9879\u76ee\u800c\u8a00&#xff0c;\u4e32\u53e3\u6a21\u5757\u5e76\u975e\u7b80\u5355\u7684Serial.print()\u8c03\u7528\u96c6\u5408&#xff0c;\u800c\u662f\u4e00\u4e2a\u9700\u8981\u5177\u5907\u660e\u786e\u63a5\u53e3\u5951\u7ea6\u3001\u53ef\u590d\u7528\u6027\u3001\u65f6\u95f4\u6233\u589e\u5f3a\u80fd\u529b&#xff0c;\u5e76\u80fd\u65e0\u7f1d\u878d\u5165\u6574\u4f53\u8f6f\u4ef6\u67b6\u6784\u7684\u72ec\u7acb\u529f\u80fd\u5355\u5143\u3002\u672c\u8282\u5c06\u4ece\u5de5\u7a0b\u5b9e\u8df5\u89d2\u5ea6\u51fa\u53d1&amp;#xff","og_url":"https:\/\/www.wsisp.com\/helps\/79067.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-28T14:25:40+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/79067.html","url":"https:\/\/www.wsisp.com\/helps\/79067.html","name":"ESP8266\u4e32\u53e3\u6a21\u5757\u5de5\u7a0b\u5316\u8bbe\u8ba1\u4e0e\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-28T14:25:40+00:00","dateModified":"2026-02-28T14:25:40+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/79067.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/79067.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/79067.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"ESP8266\u4e32\u53e3\u6a21\u5757\u5de5\u7a0b\u5316\u8bbe\u8ba1\u4e0e\u5b9e\u73b0"}]},{"@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\/79067","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=79067"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/79067\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=79067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=79067"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=79067"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=79067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}