modified: tcp_server/tcp_server.ino

master
YUNLEI 2022-09-04 15:06:01 +08:00
parent 5aad698179
commit d1d62c09b4
1 changed files with 3 additions and 3 deletions

View File

@ -17,12 +17,12 @@ void setup() {
/**WIFI热点AP模式**/ /**WIFI热点AP模式**/
// Serial.println("Configuring access point..."); // Serial.println("Configuring access point...");
// You can remove the password parameter if you want the AP to be open. // You can remove the password parameter if you want the AP to be open.
// WiFi.softAP(ssid, password); // WiFi.softAP(ssid, password); //WIFI AP模式的开启
// myIP = WiFi.softAPIP(); // myIP = WiFi.softAPIP(); //获取本地ip地址
// Serial.println("AP IP address: "); // Serial.println("AP IP address: ");
// Serial.println(myIP); // Serial.println(myIP);
/**WIFI热点AP模式**/ /**WIFI热点AP模式**/
WiFi.begin(ssid, password); //WIFI STAģʽ WiFi.begin(ssid, password); //WIFI STA模式的连接
while (WiFi.status() != WL_CONNECTED) { while (WiFi.status() != WL_CONNECTED) {
delay(500); delay(500);
Serial.print("."); Serial.print(".");