feat: releay ui example, simplify logging
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
#include <Arduino.h>
|
||||
#include "spore/Spore.h"
|
||||
#include "spore/services/LoggingService.h"
|
||||
#include "RelayService.h"
|
||||
|
||||
// Choose a default relay pin. For ESP-01 this is GPIO0. Adjust as needed for your board.
|
||||
@@ -29,8 +28,8 @@ void setup() {
|
||||
// Start the API server and complete initialization
|
||||
spore.begin();
|
||||
|
||||
LOG_INFO(spore.getContext(), "Main", "Relay service registered and ready!");
|
||||
LOG_INFO(spore.getContext(), "Main", "Web interface available at http://<node-ip>/relay.html");
|
||||
LOG_INFO("Main", "Relay service registered and ready!");
|
||||
LOG_INFO("Main", "Web interface available at http://<node-ip>/relay.html");
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
||||
Reference in New Issue
Block a user