![Handson Technology ESP8266 WiFi Manual Download Page 9](http://html1.mh-extra.com/html/handson-technology/esp8266-wifi/esp8266-wifi_manual_3556998009.webp)
// key in your own SSID
// key in your own WiFi access point
const char
*
password
=
"abc1234"
;
password
=
"handson"
;
const char
*
ssid
/*
* Simple HTTP get webclient test
*/
#include <ESP8266WiFi.h>
Figure 3.2: Uploading the sketch to ESP8266 NodeMCU module.
The sketch will start immediately - you'll see the LED blinking. Hooray!
Connecting via WiFi
OK once you've got the LED blinking,
let’s go straight to the fun part, connecting to a webserver. Create a new sketch
with this code:
Don’t forget to update:
const char* ssid = "yourssid";
const char* password = "yourpassword";
to your WiFi access point and password, then upload the same way: get into bootload mode, then upload code via
IDE.
9