#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)