Files
spore/examples/static_web/main.cpp
2025-09-16 18:14:41 +02:00

23 lines
509 B
C++

#include <Arduino.h>
#include "spore/Spore.h"
#include "spore/util/Logging.h"
// Create Spore instance
Spore spore;
void setup() {
// Initialize Spore framework
spore.setup();
// Start the framework (this will start the API server with static file serving)
spore.begin();
LOG_INFO( "Example", "Static web server started!");
LOG_INFO( "Example", "Visit http://<node-ip>/ to see the web interface");
}
void loop() {
// Let Spore handle the main loop
spore.loop();
}