SNTP Methods#

Macros#

#define

Enable SNTP for broadcast mode.

#define

Enable SNTP for unicast mode.

Macro Definition Documentation#

SL_SNTP_BROADCAST_MODE#

#define SL_SNTP_BROADCAST_MODE
Value:
1

Enable SNTP for broadcast mode.

In the broadcast mode, the server periodically sends broadcast messages to the client, and the client receives the messages from the server.

Note

  • To use broadcast mode, the client, and the SNTP server must be in the same subnet.


Definition at line 49 of file components/service/sntp/inc/sl_sntp.h

SL_SNTP_UNICAST_MODE#

#define SL_SNTP_UNICAST_MODE
Value:
2

Enable SNTP for unicast mode.

In the unicast mode, the client initiates a request to the server. After receiving the request, the server constructs a response message based on the local time and sends the response message back to the client.


Definition at line 59 of file components/service/sntp/inc/sl_sntp.h