Include Files
Wherever you want to use µC/SNTPc, you should include the following header:
Include file | Description |
---|---|
Source/sntp-c.h | Contains 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
Get time offset from SNTP server
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/smtp-c_cmd.h | Contains SMTPc Command definitions |
API
Function name | Description |
---|---|
SMTPcCmd_Init() | Function to load SMTP client command into shell. |
Command reference
Command | Description | Argument | Usage example |
---|---|---|---|
smtp_get | Send a quick email to test the SMTP setting | -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 |
smtp_help | Print help | none | smtp_help |