2017-03-06 16:56:37 +00:00
|
|
|
#ifndef IMPLEMENTATIONENDPOINT_H
|
|
|
|
#define IMPLEMENTATIONENDPOINT_H
|
|
|
|
|
|
|
|
#include <Endpoint.h>
|
|
|
|
#include <SpejsNode.h>
|
|
|
|
|
|
|
|
class ImplementationEndpoint : public Endpoint {
|
|
|
|
protected:
|
|
|
|
rBootHttpUpdate* otaUpdater = 0;
|
|
|
|
|
|
|
|
public:
|
2017-10-06 21:03:40 +00:00
|
|
|
// Use empty endpoint type to just keep it unpublished
|
|
|
|
ImplementationEndpoint() : Endpoint("") {}
|
2017-03-06 16:56:37 +00:00
|
|
|
|
|
|
|
EndpointResult onValue(String property, String value);
|
|
|
|
void otaUpdateCallback(rBootHttpUpdate& updater, bool result);
|
|
|
|
void startOTA();
|
|
|
|
};
|
|
|
|
#endif
|