arduino to esp
#include <ESP8266WiFi.h> const char * ssid = "TP-Link_3A44" ; // Enter your WiFi SSID const char * password = "36730186" ; // Enter your WiFi password void setup () { Serial . begin ( 115200 ) ; delay ( 100 ) ; // Connect to WiFi Serial . println () ; Serial . print ( "Connecting to " ) ; Serial . println ( ssid ) ; WiFi . begin ( ssid, password ) ; while ( WiFi . status () != WL_CONNECTED ) { delay ( 500 ) ; Serial . print ( "." ) ; } Serial . println ( "" ) ; Serial . println ( "WiFi connected" ) ; Serial . println ( "IP address: " ) ; Serial . println ( WiFi . localIP ()) ; } void loop () { // Your Arduino code here }