upgrading to current Sming api
parent
61b438e420
commit
c1f1bc2020
|
@ -98,7 +98,7 @@ void ImplementationEndpoint::startOTA() {
|
||||||
notify("ota", "started");
|
notify("ota", "started");
|
||||||
}
|
}
|
||||||
|
|
||||||
void ImplementationEndpoint::otaUpdateCallback(bool result) {
|
void ImplementationEndpoint::otaUpdateCallback(rBootHttpUpdate& updater, bool result) {
|
||||||
if(result == true) {
|
if(result == true) {
|
||||||
// success
|
// success
|
||||||
notify("ota", "finished");
|
notify("ota", "finished");
|
||||||
|
|
|
@ -86,7 +86,7 @@ public:
|
||||||
ImplementationEndpoint() : Endpoint("$implementation") {}
|
ImplementationEndpoint() : Endpoint("$implementation") {}
|
||||||
|
|
||||||
EndpointResult onValue(String property, String value);
|
EndpointResult onValue(String property, String value);
|
||||||
void otaUpdateCallback(bool result);
|
void otaUpdateCallback(rBootHttpUpdate& updater, bool result);
|
||||||
void startOTA();
|
void startOTA();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue