thermferm/simulator.h

Sun, 05 May 2024 17:24:54 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sun, 05 May 2024 17:24:54 +0200
changeset 730
6eba006ed8f5
parent 715
f5d85af156ab
permissions
-rw-r--r--

Much faster shutdown of the websocket service.

#ifndef SIMULATOR_H
#define	SIMULATOR_H

#ifdef USE_SIMULATOR

/**
 * @brief Return a json string with one simulator record
 * @param simulator The simulator record
 * @return Json string
 */
char *simulator_json(simulator_list *simulator);


/**
 * @brief Send all simulator records to the websocket
 */
void simulator_ws(void);


/**
 * @brief The simulator thread.
 */
void *my_simulator_loop(void *);

#endif

#endif

mercurial