本站改版新增arduino频道
arduino WiFi热点
#include "WiFi.h" void setup() { Serial.begin(115200); WiFi.softAP("ESP_AP", "123456789"); } void loop() { Serial.print("Host Name:"); Serial.println(WiFi.softAPgetHostname()); Serial.print("Host IP:"); Serial.println(WiFi.softAPIP()); Serial.print("Host IPV6:"); Serial.println(WiFi.softAPIPv6()); Serial.print("Host SSID:"); Serial.println(WiFi.SSID()); Serial.print("Host Broadcast IP:"); Serial.println(WiFi.softAPBroadcastIP()); Serial.print("Host mac Address:"); Serial.println(WiFi.softAPmacAddress()); Serial.print("Number of Host Connections:"); Serial.println(WiFi.softAPgetStationNum()); Serial.print("Host Network ID:"); Serial.println(WiFi.softAPNetworkID()); Serial.print("Host Status:"); Serial.println(WiFi.status()); delay(1000); }
Copyright © 2014 ESP56.com All Rights Reserved
晋ICP备14006235号-22 晋公网安备14108102001165号
执行时间: 0.0095059871673584 seconds