// clang-format off
{{#global}}
#include <ESP8266WiFi.h>
char* topicG;
char* payloadG;
unsigned int lengthG = 0;
{{/global}}
// clang-format on
struct State {
};
// clang-format off
{{ GENERATED_CODE }}
// clang-format on
void evaluate(Context ctx) {
auto MQTT = getValue<input_MQTT>(ctx);
auto state = getState(ctx);
if (isInputDirty<input_CONN>(ctx)) {
emitValue<output_DONE>(ctx, true);
emitValue<output_OUT>(ctx, MQTT);
}
}