bmsd/ispindels.h

Tue, 19 May 2020 13:50:14 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Tue, 19 May 2020 13:50:14 +0200
changeset 680
0bb48333d133
parent 578
e75ce5bbda73
permissions
-rw-r--r--

Fixed missing co2meters websocket data. Added websockets and removed polling for the mon-ispindel screen. The iSpindel SG gauge adjusts the resolution to the highest detected OG.

/**
 * @file ispindels.h
 */

#ifndef _ISPINDEL_H
#define _ISPINDEL_H

void ispindel_dump(sys_ispindel_list *ispindel);

/**
 * @brief Process received command from a websocket.
 * @param payload The received data in JSON format.
 */
void ispindel_ws_receive(char *payload);

/**
 * @brief Messages received from a iSpindel using the MQTT sender.
 *        A new node is created if this is the first message of the
 *        iSpindel, else the last seen time is updated. Then the last
 *        actual state is recorded. A log line is written when a beer
 *        is assigned.
 * @param topic The MQTT topic string, contains the ispindel type and name
 * @param payload The value for the selected keyword.
 */
void ispindel_birth_data(char *topic, char *payload);


#endif

mercurial