espleaf/include/mqtt.h

11 lines
195 B
C
Raw Normal View History

2021-01-08 04:54:55 +00:00
#pragma once
#include "wifi.h"
#include "config.h"
#include <PubSubClient.h>
static PubSubClient mqtt(wifi);
void mqtt_setup();
void mqtt_loop();
void mqtt_publish_current_state(String state);