Internet of Things
3. Your first Blynk+NodeMCU sketch
3.1. Circuit and sketch
1.Connect your NodeMCU to your PC
2. Open Arduino IDE
3. Then go to File->Examples->Blynk-Boards_Wifi->Esp8266Standalone
4. Select the correct board (NodeMCU 1.0) and the com port from the Tools Menu
5.
Change the credentials to yours. If you don't know them, ask the
admins. The auth[] is the key that you received previously on your
email. The ssid[] is the name of your WiFi network and the pass[] is the
password.
char auth[] = "????????????";
char ssid[] = "XXXXXXXXXX";
char pass[] = "YYYYYYYYYYY";
Finally Save the file and Press Upload.
Also, make the necessary connections to your circuit:
Now go back to your mobile press Play and......play with the button in Blynk!
Content adapted from Robotics - 3D Printing - Internet of Things, an elearn.ellak.gr project.