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.

33 lines
714 B

  1. #pragma once
  2. #include <Arduino.h>
  3. #include "config/Main.h"
  4. struct config_t {
  5. uint8_t seed; //sizeof = 1
  6. char version[5]; //sizeof = 5
  7. uint16_t firstEntry; //sizeof = 2
  8. uint16_t lastEntry; //sizeof = 2
  9. #if BACKUP_ENABLE_NETWORK
  10. networkConfig_t network; //sizeof = 73
  11. #else
  12. char reserved[73];
  13. #endif
  14. uint8_t alertBatteryLevel1; //sizeof = 1
  15. uint8_t alertBatteryLevel2; //sizeof = 1
  16. uint8_t alertBatteryLevelClear; //sizeof = 1
  17. uint8_t activeAlerts; //sizeof = 1
  18. char contactPhone[15]; //sizeof = 15
  19. }; //sizeof = 29 + 73 = 102
  20. namespace config {
  21. namespace main {
  22. extern config_t value;
  23. void setup();
  24. void save();
  25. void reset();
  26. }
  27. }