11 lines
195 B
C
11 lines
195 B
C
#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); |