ESP32 / ESP8266 & BME280 / SHT2x sensor with InfluxDB support
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

memory.h 894B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * memory.h
  3. *
  4. * ESP8266 / ESP32 Environmental Sensor
  5. *
  6. * ----------------------------------------------------------------------------
  7. * "THE BEER-WARE LICENSE" (Revision 42):
  8. * <xythobuz@xythobuz.de> wrote this file. As long as you retain this notice
  9. * you can do whatever you want with this stuff. If we meet some day, and you
  10. * think this stuff is worth it, you can buy me a beer in return. Thomas Buck
  11. * ----------------------------------------------------------------------------
  12. */
  13. #ifndef __ESP_ENV_MEMORY__
  14. #define __ESP_ENV_MEMORY__
  15. struct ConfigMemory {
  16. double sht_temp_off;
  17. double bme1_temp_off;
  18. double bme2_temp_off;
  19. ConfigMemory() {
  20. sht_temp_off = 0.0;
  21. bme1_temp_off = 0.0;
  22. bme2_temp_off = 0.0;
  23. }
  24. };
  25. ConfigMemory mem_read();
  26. void mem_write(ConfigMemory mem);
  27. extern ConfigMemory config;
  28. #endif // __ESP_ENV_MEMORY__