From 9098670b47605be891b7f0da83962380478dfbb5 Mon Sep 17 00:00:00 2001 From: Piotr Dobrowolski Date: Fri, 6 Oct 2017 23:03:40 +0200 Subject: [PATCH] Move $fw/slot over to $implementation, don't publish $type on $implementation --- spejsiot/SpejsNode.cpp | 2 +- spejsiot/endpoints/ImplementationEndpoint.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/spejsiot/SpejsNode.cpp b/spejsiot/SpejsNode.cpp index 947f069..2df30a8 100644 --- a/spejsiot/SpejsNode.cpp +++ b/spejsiot/SpejsNode.cpp @@ -156,7 +156,7 @@ void SpejsNode::onConnected() { notify("$mac", WifiStation.getMAC()); notify("$fw/name", "spejsiot"); notify("$fw/version", BUILD_ID); - notify("$fw/slot", String(currentSlot)); + notify("$implementation/slot", String(currentSlot)); // HTTP initialization http.listen(80); diff --git a/spejsiot/endpoints/ImplementationEndpoint.h b/spejsiot/endpoints/ImplementationEndpoint.h index 28df0e1..55de752 100644 --- a/spejsiot/endpoints/ImplementationEndpoint.h +++ b/spejsiot/endpoints/ImplementationEndpoint.h @@ -9,7 +9,8 @@ protected: rBootHttpUpdate* otaUpdater = 0; public: - ImplementationEndpoint() : Endpoint("$implementation") {} + // Use empty endpoint type to just keep it unpublished + ImplementationEndpoint() : Endpoint("") {} EndpointResult onValue(String property, String value); void otaUpdateCallback(rBootHttpUpdate& updater, bool result);