From 1e82ea65a0cb0eecbba5e16d2ab1ee8d227fdc64 Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Thu, 2 May 2019 15:06:21 +0200 Subject: [PATCH] init sketch file with Wifi connection --- esp32-env-monitor.ino | 22 ++++++++++++++++++++++ wifi_login.h | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 esp32-env-monitor.ino create mode 100644 wifi_login.h diff --git a/esp32-env-monitor.ino b/esp32-env-monitor.ino new file mode 100644 index 0000000..067c1ec --- /dev/null +++ b/esp32-env-monitor.ino @@ -0,0 +1,22 @@ +#include +#include "wifi_login.h" + +void setup() { + + //Init wifi connection + 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() { +} diff --git a/wifi_login.h b/wifi_login.h new file mode 100644 index 0000000..0ca4fe6 --- /dev/null +++ b/wifi_login.h @@ -0,0 +1,2 @@ +const char* ssid = ""; +const char* password = "";