bmsd/nodes.h

Thu, 27 Dec 2018 22:30:26 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 27 Dec 2018 22:30:26 +0100
changeset 154
ef298b5aa994
parent 0
033898178630
child 384
442d23455ae4
permissions
-rw-r--r--

Added f_acid_to_ph_57 to the fermentables json in the recipes. The protonDeficit now processes the grist. Water pH calculations are partly in place. Added simple BU and Cl/So4 indicators. Redesign of the water screen.

/**
 * @file nodes.h
 */

#ifndef _NODES_H
#define _NODES_H

void node_dump(sys_node_list *node);

/**
 * @brief Birth of a node or data update. Create it in the database if 
 *        never seen before, else just update the database entry.
 * @param topic The MQTT topic string, contains the node type and name.
 * @param payload The JSON formatted payload with the node details.
 */
void node_birth_data(char *topic, char *payload);

/**
 * @brief Death of a node. Mark it offline in the database.
 * @param topic The MQTT topic string, contains the node type and name.
 */
void node_death(char *topic);

#endif

mercurial