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.

25 lines
1.3 KiB

  1. #pragma once
  2. #include "User.h"
  3. /**
  4. * Configure the values used for alerts triggering.
  5. * Note that the battery level percentage are quite high,
  6. * because the reading provided by the SIM808 module are
  7. * not accurate and the device shuts itself off way before reaching 0%.
  8. * The clearance level is also well above the first alert level, because
  9. * the reading is so inaccurate that sometimes the battery can gain 5%
  10. * between readings. Setting a clearance level much higher avoid
  11. * clearing the levels and retriggering them the next time.
  12. */
  13. #define ALERTS_ON_SERIAL _DEBUG ///< Display alerts on serial when connected rather than sending an SMS.
  14. #define CONFIG_BATTERY_ALERT_LEVEL1 45 ///< Battery percentage at which to trigger the first low battery alert.
  15. #define CONFIG_BATTERY_ALERT_LEVEL2 38 ///< Battery percentage at which to trigger the final low battery alert.
  16. #define CONFIG_BATTERY_ALERT_CLEAR 60 ///< Battery percentage at which to clear all battery alerts.
  17. #define CONFIG_ACTIVE_ALERTS 0 ///< Default active alerts
  18. #define ALERT_SUSPICIOUS_RTC_TEMPERATURE 0 ///< Temperature at which to consider the RTC module as failling.
  19. ///< When the backup battery is dead or nearly dead, the reading
  20. ///< of the temperature fails and returns 0.