-
Notifications
You must be signed in to change notification settings - Fork 792
Home
flyfisher2 edited this page Aug 14, 2018
·
1 revision
Welcome to the nodemcu-flasher wiki!
#include <ESP8266WiFi.h>
const char* ssid = "Guest WIFI"; const char* password = "GuestWIFI!24";
void setup() { Serial.begin(115200); Serial.println("Starting Ducky Script on NodeMCU...");
WiFi.mode(WIFI_STA);
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());
// The following lines are for testing purposes, you can remove them later
Serial.println("Press any key to continue...");
while (Serial.available() <= 0) {}
}
void loop() { // The loop is empty since the Ducky Script runs in the setup function }