linux
monitoring
raspberry-pi
automation
raspberrypi
mqtt
iot
internet-of-things
smarthome
dashboard
mqtt-hyperdash
control-systems
rule-engines
cockpit
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
587 B
22 lines
587 B
/* SUBSCRIBE.H (c) Markus Hoffmann */ |
|
|
|
/* This file is part of MQTT-Hyperdash, the MQTT Dashboard |
|
* ============================================================ |
|
* MQTT-Hyperdash is free software and comes with NO WARRANTY - read the file |
|
* COPYING for details |
|
*/ |
|
|
|
typedef struct { |
|
char *topic; |
|
int qos; |
|
int anz; |
|
STRING last_value; |
|
} SUBSCRIPTION; |
|
|
|
extern SUBSCRIPTION subscriptions[]; |
|
extern int anzsubscriptions; |
|
|
|
int find_subscription(const char *topic); |
|
void clear_subscription(int idx); |
|
void clear_all_subscriptions(); |
|
int add_subscription(const char *topic, int qos);
|
|
|