Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Include Files

Wherever you want to use µC/SNTPc, you should include the following header:

Include file
Description
Source/sntp-c.hContains SNTPc API definitions

Module initialization

µC/SNTPc does not require to be initialized. Although, if you want to use the µC/DNSc or µC/CLK features , make sure those modules are properly initialized.

Get time from SNTP server

TODO

Get time offset from SNTP server

TODO

Shell reference

Prerequisite

µC/TCP-IP command module.

Include Files

Wherever you want to use initialize the command in µC/Shell, you should include the following header:

Include file
Description
Cmd/sntp-c_cmd.hContains SNTPc Command definitions

API

Function name
Description
SNTPcCmd_Init()Function to load SNTP client command into shell.

Command reference

Command
Description
Argument
Usage example
sntp_getRequest time from a SNTP server.

-4 <ipv4_address> (use IPv4 server address)

-6 <ipv6_address> (use IPv6 server address)

-d <domain_name> (use Domain name to get server address)

sntp_get -d sntp.server.com -t
sntp_helpPrint helpnonesntp_help
  • No labels