Files
esp8266_study/blinker-library/src/BlinkerESPSubDevice.h
2024-09-27 01:22:07 +08:00

28 lines
568 B
C++

#ifndef BLINKER_ESP_SUBDEVICE_H
#define BLINKER_ESP_SUBDEVICE_H
#ifndef BLINKER_ARDUINOJSON
#define BLINKER_ARDUINOJSON
#endif
#include "Adapters/BlinkerSubDevice.h"
#include "Blinker/BlinkerApi.h"
typedef BlinkerApi BApi;
class BlinkerESPSubDevice : public BlinkerApi
{
public :
void begin(const char* _key, const char* _type)
{
transport(Transp);
BApi::begin(_key, _type);
BLINKER_LOG(BLINKER_F("Blinker SubDevice initialized..."));
}
private :
BlinkerSubDevice Transp;
};
#endif