init sketch file with Wifi connection

This commit is contained in:
Cedric Girard 2019-05-02 15:06:21 +02:00
parent c133c97983
commit 1e82ea65a0
Signed by: X-dark
GPG key ID: E7D0E125DB9519E4
2 changed files with 24 additions and 0 deletions

22
esp32-env-monitor.ino Normal file
View file

@ -0,0 +1,22 @@
#include <WiFi.h>
#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() {
}

2
wifi_login.h Normal file
View file

@ -0,0 +1,2 @@
const char* ssid = "";
const char* password = "";