BresserWeatherSensorLW
Bresser 868 MHz Weather Sensor Radio Receiver based on ESP32/RP2040 and SX1262/SX1276/LR1121 - sends data to a LoRaWAN Network
Loading...
Searching...
No Matches
SystemContext.cpp File Reference

System context for BresserWeatherSensorLW. More...

#include "SystemContext.h"
#include <Arduino.h>
#include <time.h>
#include <Preferences.h>
#include "../BresserWeatherSensorLWCfg.h"
#include "LoadNodeCfg.h"
#include "adc/adc.h"
#include "logging.h"
Include dependency graph for SystemContext.cpp:

Functions

E_TIME_SOURCE rtcTimeSource __attribute__ ((section(".uninitialized_data")))
 RTC time source.

Variables

Preferences preferences
 Preferences (stored in flash memory).
time_t rtcLastClockSync
 timestamp of last RTC synchronization to network time
uint16_t bootCount
uint16_t bootCountSinceUnsuccessfulJoin

Detailed Description

System context for BresserWeatherSensorLW.

  • Hardware (MCU or board) specific initialization
  • Real time clock (RTC) initialization
  • Sleep interval handling (energy saving/battery discharge protection)
  • Sleep mode/wake-up handling