Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

32 рядки
1.5 KiB

  1. #pragma once
  2. /**
  3. * Configure the values used for alerts triggering.
  4. * Note that the battery level percentage are quite high,
  5. * because the reading provided by the SIM808 module are
  6. * not accurate and the device shuts itself off way before reaching 0%.
  7. * The clearance level is also well above the first alert level, because
  8. * the reading is so inaccurate that sometimes the battery can gain 5%
  9. * between readings. Setting a clearance level much higher avoid
  10. * clearing the levels and retriggering them the next time.
  11. */
  12. #define CONFIG_DEFAULT_BATTERY_ALERT_LEVEL1 45 ///< Battery percentage at which to trigger the first low battery alert.
  13. #define CONFIG_DEFAULT_BATTERY_ALERT_LEVEL2 38 ///< Battery percentage at which to trigger the final low battery alert.
  14. #define CONFIG_DEFAULT_BATTERY_ALERT_CLEAR 60 ///< Battery percentage at which to clear all battery alerts.
  15. #define CONFIG_DEFAULT_ACTIVE_ALERTS 0 ///< Default active alerts
  16. #define CONFIG_DEFAULT_CONTACT_PHONE "+642568452" ///< Default phone number to send the alert SMS to.
  17. /**
  18. \def ALERTS_ON_SERIAL_IF_AVAILABLE
  19. Display alerts on serial when connected rather than sending an SMS.
  20. Useful for debugging purpose and avoid costs related to SMS sending.
  21. */
  22. #define ALERTS_ON_SERIAL_IF_AVAILABLE 1
  23. /**
  24. \def ALERT_SUSPICIOUS_RTC_TEMPERATURE
  25. Temperature at which to consider the RTC module as failling.
  26. When the backup battery is dead or nearly dead, the reading
  27. of the temperature fails and returns 0.
  28. */
  29. #define ALERT_SUSPICIOUS_RTC_TEMPERATURE 0