Formatting
This commit is contained in:
@ -4,18 +4,18 @@
|
||||
#include "mgos.h"
|
||||
#include "mgos_gpio.h"
|
||||
|
||||
#define CHANNEL_CHANGE_COOLDOWN_SECONDS 0.250
|
||||
#define CHANNEL_MAX 16
|
||||
#define GPIO_INVALID 255
|
||||
#define GPIO_MIN 0
|
||||
#define GPIO_MAX 16
|
||||
#define CHANNEL_CHANGE_COOLDOWN_SECONDS 0.250
|
||||
#define CHANNEL_MAX 16
|
||||
#define GPIO_INVALID 255
|
||||
#define GPIO_MIN 0
|
||||
#define GPIO_MAX 16
|
||||
|
||||
struct channel_t {
|
||||
uint8_t button_gpio;
|
||||
uint8_t led_gpio;
|
||||
uint8_t relay_gpio;
|
||||
bool relay_state;
|
||||
double button_last_change;
|
||||
bool relay_state;
|
||||
double button_last_change;
|
||||
};
|
||||
|
||||
void statusled_blink();
|
||||
|
@ -4,9 +4,9 @@
|
||||
#include "mgos.h"
|
||||
#include "mgos_mqtt.h"
|
||||
|
||||
#define MQTT_TOPIC_PREFIX ""
|
||||
#define MQTT_TOPIC_BROADCAST_CMD "/mongoose/broadcast"
|
||||
#define MQTT_TOPIC_BROADCAST_STAT "/mongoose/broadcast/stat"
|
||||
#define MQTT_TOPIC_PREFIX ""
|
||||
#define MQTT_TOPIC_BROADCAST_CMD "/mongoose/broadcast"
|
||||
#define MQTT_TOPIC_BROADCAST_STAT "/mongoose/broadcast/stat"
|
||||
|
||||
void mqtt_init();
|
||||
void mqtt_publish_stat(const char *stat, const char *fmt, ...);
|
||||
|
Reference in New Issue
Block a user