Files
spore/examples/static_web/main.cpp

22 lines
465 B
C++

#include <Arduino.h>
#include "spore/Spore.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();
Serial.println("Static web server started!");
Serial.println("Visit http://<node-ip>/ to see the web interface");
}
void loop() {
// Let Spore handle the main loop
spore.loop();
}