WIP: service and broken partitions
This commit is contained in:
21
examples/static_web/main.cpp
Normal file
21
examples/static_web/main.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#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();
|
||||
}
|
||||
Reference in New Issue
Block a user