Move $fw/slot over to $implementation, don't publish $type on $implementation
parent
e264d9279e
commit
9098670b47
|
@ -156,7 +156,7 @@ void SpejsNode::onConnected() {
|
||||||
notify("$mac", WifiStation.getMAC());
|
notify("$mac", WifiStation.getMAC());
|
||||||
notify("$fw/name", "spejsiot");
|
notify("$fw/name", "spejsiot");
|
||||||
notify("$fw/version", BUILD_ID);
|
notify("$fw/version", BUILD_ID);
|
||||||
notify("$fw/slot", String(currentSlot));
|
notify("$implementation/slot", String(currentSlot));
|
||||||
|
|
||||||
// HTTP initialization
|
// HTTP initialization
|
||||||
http.listen(80);
|
http.listen(80);
|
||||||
|
|
|
@ -9,7 +9,8 @@ protected:
|
||||||
rBootHttpUpdate* otaUpdater = 0;
|
rBootHttpUpdate* otaUpdater = 0;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ImplementationEndpoint() : Endpoint("$implementation") {}
|
// Use empty endpoint type to just keep it unpublished
|
||||||
|
ImplementationEndpoint() : Endpoint("") {}
|
||||||
|
|
||||||
EndpointResult onValue(String property, String value);
|
EndpointResult onValue(String property, String value);
|
||||||
void otaUpdateCallback(rBootHttpUpdate& updater, bool result);
|
void otaUpdateCallback(rBootHttpUpdate& updater, bool result);
|
||||||
|
|
Loading…
Reference in New Issue