Esp8266 arduino3/15/2023 ![]() this example use esp8266 to connect to an Access Point and connect to SINGLE TCP Server which is at the same subnetĢ // such as the esp8266 is is 192.168.1.3, and the server ip is 192.168.1.1 ,then esp8266 can connect to the serverĤ //Then connect a LED on Digital pin13, and open the software on PC_TCP server, send command to control the LED state:ĥ //send "H" to turn ON LED send "L" to turn OFF LEDġ0 #define ssid "test" // you need to change itġ9 SoftwareSerial mySerial(10, 11) // RX, TXĢ3 delay(2000) // it will be better to delay 2s to wait esp8266 module OKĢ6 wifi.begin(
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |