15 lines
254 B
C
15 lines
254 B
C
|
#pragma once
|
||
|
|
||
|
#include "pico/stdlib.h"
|
||
|
|
||
|
#include "lwip/apps/sntp.h"
|
||
|
|
||
|
extern "C" void set_system_time(u32_t sec);
|
||
|
|
||
|
class NtpClient {
|
||
|
public:
|
||
|
static void setDateTime();
|
||
|
|
||
|
private:
|
||
|
NtpClient() {} // Disallow creating an instance of this object
|
||
|
};
|