Cov txheej txheem:

Tsim kom muaj Kev Sib Txuas WiFi Nrog ESP8266 thiab Tau Txais IP Chaw Nyob Hauv Zos: 3 Kauj Ruam
Tsim kom muaj Kev Sib Txuas WiFi Nrog ESP8266 thiab Tau Txais IP Chaw Nyob Hauv Zos: 3 Kauj Ruam

Video: Tsim kom muaj Kev Sib Txuas WiFi Nrog ESP8266 thiab Tau Txais IP Chaw Nyob Hauv Zos: 3 Kauj Ruam

Video: Tsim kom muaj Kev Sib Txuas WiFi Nrog ESP8266 thiab Tau Txais IP Chaw Nyob Hauv Zos: 3 Kauj Ruam
Video: kev coj yuav coj li ca thiaj sib haum xeeb nyob tau ua ke nrog lwm tu lo yg Tu tsev neeg 2024, Hlis ntuj nqeg
Anonim
Tsim kom muaj Kev Sib Txuas WiFi nrog ESP8266 thiab Tau Txais IP Chaw Nyob
Tsim kom muaj Kev Sib Txuas WiFi nrog ESP8266 thiab Tau Txais IP Chaw Nyob

Hauv qhov kev qhia no peb yuav pom yuav tsim teeb tsa WiFi li cas nrog ESP8266 WiFi pawg thawj coj. Peb yuav txuas qhov ntawd nrog WiFi network hauv zos.

Kauj ruam 1: Cheeb Tsam Xav Tau

Yog lawm peb xav tau WiFi pawg thawj coj uas yuav yog ESP8266 WiFi board.

(yog tias koj lub PC tsis pom koj li ESP8266 WiFi board thov teeb tsa tus tsav tsheb kom raug rau ESP8266 hauv koj lub PC)

Kauj ruam 2: Kev sib txuas

Kev sib txuas
Kev sib txuas

Tsuas yog siv USB hom A rau USB micro B cable txuas lub rooj tsav xwm rau lub PC.

Kauj ruam 3: Programming

Programming
Programming

Tshaj tawm cov cai hauv qab no hauv koj pawg ESP8266 (siv arduinoIDE los rub tawm):

#suav nrog

const char ssid = "Ua raws nws nrog koj tus ssid";

const char password = "Hloov nws nrog koj tus password";

void teeb tsa ()

{

Serial.begin (115200);

Serial.print ("Txuas rau");

Serial.println (ssid);

WiFi.begin (ssid, password);

thaum (WiFi.status ()! = WL_CONNECTED)

{

ncua (500);

Serial.print (".");

}

Serial.println ("Txuas nrog.");

Serial.println (WiFi.localIP ());

Pom zoo: