#pragma once #include "pico/stdlib.h" #include "lwip/apps/sntp.h" extern "C" void set_system_time(u32_t sec); class NtpClient { public: NtpClient() = delete; static void setDateTime(); static void stop(); private: }; inline void NtpClient::stop() { sntp_stop(); }