ESP8266开发板接入点模式

Lan
Lan
2021-02-25 / 0 评论 / 556 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2021年02月25日,已超过1148天没有更新,若内容或图片失效,请留言反馈。
#include <ESP8266WiFi.h>
const char *ssid = "Lanol.cn";
const char *pwd = "12345678";

void setup() {
  Serial.begin(9600);
  WiFi.softAP(ssid,pwd);
  Serial.print("IP:");
  Serial.print(WiFi.softAPIP());
}

void loop() {
  // put your main code here, to run repeatedly:

}

创建一个WiFi名为Lanol.cn的热点,密码为12345678

然后输出IP地址

0

评论 (0)

取消