<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Esp on watermeko&#39;s blog</title>
    <link>https://blog.watermeko.icu/tags/esp/</link>
    <description>Recent content in Esp on watermeko&#39;s blog</description>
    <generator>Hugo -- 0.128.0</generator>
    <language>en</language>
    <copyright>watermeko</copyright>
    <lastBuildDate>Wed, 20 Sep 2023 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.watermeko.icu/tags/esp/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>ESP8266-NodeMCU食用指南</title>
      <link>https://blog.watermeko.icu/post/esp8266-nodemcu-guide/</link>
      <pubDate>Wed, 20 Sep 2023 00:00:00 +0000</pubDate>
      <guid>https://blog.watermeko.icu/post/esp8266-nodemcu-guide/</guid>
      <description>基础知识 WIFI模式 接入点模式 esp8266作为接入点，其他设备通过wifi与esp8266连接。 示例：
/* 此程序用于演示如何将NodeMCU以接入点模式工作。通过此程序，您可以使用 电脑或者手机连接NodeMCU所建立WiFi网络。 */ #include &amp;lt;ESP8266WiFi.h&amp;gt; // 本程序使用ESP8266WiFi库 const char* ssid = &amp;#34;wifi_name&amp;#34;; const char* password = &amp;#34;12345678&amp;#34;; // 如果建立的WiFi不要密码，则在双引号内不要填入任何信息 void setup() { Serial.begin(9600); // 启动串口通讯 WiFi.softAP(ssid, password); // 此语句是重点。WiFi.softAP用于启动NodeMCU的AP模式。 Serial.print(&amp;#34;Access Point: &amp;#34;); // 通过串口监视器输出信息 Serial.println(ssid); // 告知用户NodeMCU所建立的WiFi名 Serial.print(&amp;#34;IP address: &amp;#34;); // 以及NodeMCU的IP地址 Serial.println(WiFi.softAPIP()); // 通过调用WiFi.softAPIP()可以得到NodeMCU的IP地址 } void loop() { } 无线终端模式 esp8266与路由器连接。
/* 此程序用于演示如何将NodeMcu以接入点模式工作 */ #include &amp;lt;ESP8266WiFi.h&amp;gt; const char* ssid = &amp;#34;wifi_name&amp;#34;; const char* password = &amp;#34;pswd&amp;#34;; void setup(){ Serial.</description>
    </item>
  </channel>
</rss>
