Mon, 18 May 2020 11:00:59 +0200
Added reconnecting-websocket.js to automatic reconnect the websocket if the connection is lost. Usefull for mobile devices that go to sleep after a while. Changed mon_fermenters to use websockets instead of polling. Fixed wrong temperature color ranges on the fermenter monior. Increased the websocket receive buffer to 2048. In cannot overflow, but larger messages are chunked and the application does not handle these split messages. Needs termferm 0.9.9 or newer.
/** * @file ispindels.h */ #ifndef _ISPINDEL_H #define _ISPINDEL_H void ispindel_dump(sys_ispindel_list *ispindel); /** * @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