/* THINGSPEAK MODULE Copyright (C) 2019 by Xose PĂ©rez */ #pragma once #include "espurna.h" #if THINGSPEAK_SUPPORT #if THINGSPEAK_USE_ASYNC #include #else #include #endif constexpr const size_t tspkDataBufferSize = 256; bool tspkEnqueueRelay(unsigned char index, bool status); bool tspkEnqueueMeasurement(unsigned char index, const char * payload); void tspkFlush(); bool tspkEnabled(); void tspkSetup(); #endif // THINGSPEAK_SUPPORT == 1