spejsiot-sonoff_pow/soft/src/spejsiot/endpoints/ImplementationEndpoint.h

20 lines
483 B
C++

#ifndef IMPLEMENTATIONENDPOINT_H
#define IMPLEMENTATIONENDPOINT_H
#include <Endpoint.h>
#include <SpejsNode.h>
class ImplementationEndpoint : public Endpoint {
protected:
rBootHttpUpdate* otaUpdater = 0;
public:
// Use empty endpoint type to just keep it unpublished
ImplementationEndpoint() : Endpoint("") {}
EndpointResult onValue(String property, String value);
void otaUpdateCallback(rBootHttpUpdate& updater, bool result);
void startOTA();
};
#endif