diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..89cc49c --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.pio +.vscode/.browse.c_cpp.db* +.vscode/c_cpp_properties.json +.vscode/launch.json +.vscode/ipch diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..87bf7ce --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,23 @@ +#include +#include + +void setup() { + Serial.begin(115200); + + WiFiManager wm; + wm.setTitle("M1730"); + + bool res = wm.autoConnect("M1730"); + + if (!res) { + Serial.println("Failed to connect to WiFi"); + ESP.restart(); + } + + Serial.println("WiFi connected"); + Serial.print("IP address: "); + Serial.println(WiFi.localIP()); +} + +void loop() { +}