thermferm/server.h@0b215e4b814e
thermferm/server.h
Mon, 25 Mar 2024 17:14:56 +0100
- author
- Michiel Broek <mbroek@mbse.eu>
- date
- Mon, 25 Mar 2024 17:14:56 +0100
- changeset 650
- 0b215e4b814e
- parent 106
-
1bd9a16f5061
- permissions
- -rw-r--r--
Brought the retry attempts to read the DHT11 sensors to the main devices loop. The actual read function is now very simple. Called every 30 seconds when all is well, or 2 seconds if something is wrong.
#ifndef SERVER_H
#define SERVER_H
#ifdef HAVE_WIRINGPI_H
PI_THREAD (my_server_loop);
#else
void *my_server_loop(void *);
#endif
#endif