SNTP Helper

[English]

  • 公共头文件: #include "brookesia/service_helper/sntp.hpp"

概述

本页用于查看 SNTP helper 的原始 Doxygen API,包括公共类型、枚举、方法与相关宏定义。

API 参考

Header File

Classes

class SNTP : public esp_brookesia::service::helper::Base<SNTP>

Helper schema definitions for the SNTP service.

Public Types

enum class FunctionId

SNTP service function identifiers.

Values:

enumerator SetServers
enumerator SetTimezone
enumerator Start
enumerator Stop
enumerator GetServers
enumerator GetTimezone
enumerator IsTimeSynced
enumerator ResetData
enumerator Max
enum class EventId

SNTP service event identifiers.

Values:

enumerator Max
enum class FunctionSetServersParam

Parameter keys for FunctionId::SetServers.

Values:

enumerator Servers
enum class FunctionSetTimezoneParam

Parameter keys for FunctionId::SetTimezone.

Values:

enumerator Timezone

Public Static Functions

static inline constexpr std::string_view get_name()

Name of the SNTP service.

返回

std::string_view Stable service name.

static inline std::span<const FunctionSchema> get_function_schemas()

Get the function schemas exported by the SNTP service.

返回

std::span<const FunctionSchema> Static schema span.

static inline std::span<const EventSchema> get_event_schemas()

Get the event schemas exported by the SNTP service.

返回

std::span<const EventSchema> Empty span because SNTP exposes no events.