Move $fw/slot over to $implementation, don't publish $type on $implementation

master
informatic 2017-10-06 23:03:40 +02:00
parent e264d9279e
commit 9098670b47
2 changed files with 3 additions and 2 deletions

View File

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

View File

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