Mon, 25 Mar 2024 17:14:56 +0100
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.
/* config.h.in. */ #undef COPYRIGHT #undef VERSION /* * Socket LCD protocol bits */ #define SLCD_NULL 0x0000 #define SLCD_CLEAR 0x0001 #define SLCD_MCLEAR 0x1fff #define SLCD_HOME 0x0002 #define SLCD_MHOME 0x1ffe #define SLCD_CGRAM 0x0040 #define SLCD_MCGRAM 0x1fc0 #define SLCD_DGRAM 0x0080 #define SLCD_MDGRAM 0x1f80 #define SLCD_DATA 0x0200 #define SLCD_MDATA 0x1e00 #define SLCD_LEDS 0x0400 #define SLCD_MLEDS 0x1c00 #define SLCD_KEYS 0x0800 #define SLCD_MKEYS 0x1800 #define SLCD_MDEV 0xe000 /* * Socket LEDs bits */ #define SLED_LCD 0x0001 /* LCD backlight */ #define SLED_TFLED 0x0002 /* Thermferm LED */ #define SLED_HLTH 0x0004 /* HLT heater LED */ #define SLED_MLTH 0x0008 /* MLT heater LED */ #define SLED_MLTP 0x0010 /* MLT pump/mixer */ #define SLED_BUZZER 0x0080 /* Buzzer */ /* * Network */ #define SEND_PORT 6554 /* Compile experimental code (may not be present) */ #undef USE_EXPERIMENT /* Compile simulator code */ #undef USE_SIMULATOR /* According to Sun we MUST define this in the source */ #define _REENTRANT 1 /* Define if you have the <wiringPi.h> header file. */ #undef HAVE_WIRINGPI_H /* Define if you have the <mosquitto.h> header file. */ #undef HAVE_MOSQUITTO_H /* Define if you have the <SDL/SDL.h> header file. */ #undef HAVE_SDL2_SDL_H