fengzhihean

导航

用esp8266向外界发送网络信号

#include <ESP8266WiFi.h>

const char *ssid="fengzhihean";
const char *password="12345678";

void setup() {
Serial.begin(115200);
WiFi.softAP(ssid,password);      //打开esp8266的接入点模式(向外界发送网络信号)
Serial.print("Access Point:");   
Serial.println(ssid);
Serial.print("IP:");
Serial.println(WiFi.softAPIP());
}

void loop() {


}

posted on 2022-10-28 19:43  风止何安,璃月  阅读(44)  评论(0)    收藏  举报