modified: tcp_server/tcp_server.ino
parent
5aad698179
commit
d1d62c09b4
|
@ -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(".");
|
||||||
|
|
Loading…
Reference in New Issue