SNTP Methods#
Macro Definition Documentation#
SL_SNTP_BROADCAST_MODE#
#define SL_SNTP_BROADCAST_MODEValue:
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.
SL_SNTP_UNICAST_MODE#
#define SL_SNTP_UNICAST_MODEValue:
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.