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);