Logo Pico-Framework A web-first embedded framework for C++
Loading...
Searching...
No Matches
TimeManager.cpp File Reference
#include "time/TimeManager.h"
#include <ctime>
#include <iostream>
#include <pico/stdlib.h>
#include <pico/cyw43_arch.h>
#include "pico/aon_timer.h"
#include <lwip/apps/sntp.h>
#include <FreeRTOS.h>
#include <task.h>
#include "events/EventManager.h"
#include "events/Notification.h"
#include "time/PicoTime.h"
#include "framework/AppContext.h"
#include "http/HttpRequest.h"
#include "http/HttpResponse.h"
#include "framework_config.h"
#include "DebugTrace.h"
#include "FreeRTOS_time.h"
+ Include dependency graph for TimeManager.cpp:

Go to the source code of this file.

Functions

 TRACE_INIT (TimeManager)
 
void sntp_set_system_time (uint32_t sec)
 

Function Documentation

◆ sntp_set_system_time()

void sntp_set_system_time ( uint32_t  sec)

Definition at line 33 of file TimeManager.cpp.

34{
35 //TRACE("[SNTP] callback made\n");
36 AppContext::get<TimeManager>()->setTimeFromEpoch(sec);
37}
static constexpr std::uintptr_t getTypeKey()
Definition AppContext.h:91

References AppContext::getTypeKey().

+ Here is the call graph for this function:

◆ TRACE_INIT()

TRACE_INIT ( TimeManager  )