Transmit last temperature time

This commit is contained in:
Christoph Hagen
2023-06-03 08:14:30 +02:00
parent 3727fdb694
commit c4d8116cfd
4 changed files with 118 additions and 70 deletions

View File

@ -17,6 +17,8 @@ constexpr size_t rtcStorageSize = 7600;
constexpr size_t maxEepromSize = 13350;
constexpr size_t eepromSize = 13350;
constexpr size_t totalStorageSize = rtcStorageSize + eepromSize;
// The minimum temperature to store, in millidegrees celcius
// True minimum will be higher by 1°, since two values are reserved
constexpr long temperatureShiftForStorage = -40000;
@ -44,6 +46,8 @@ uint16_t getNumberOfMeasurements();
uint8_t getLastTemperature(uint8_t sensorIndex);
uint16_t getTimeSinceValidTemperature(uint8_t sensorIndex);
uint16_t getRecordedBytesAtOffset(uint8_t* buffer, uint16_t offset, uint16_t count);
void discardAllRecordedBytes();