|
ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
|
#include <Arduino.h>#include <NTPClient.h>#include <WiFi.h>Go to the source code of this file.
Macros | |
| #define | SERIAL_BAUD 115200 |
Functions | |
| NTPClient | timeClient (ntpUDP) |
| void | setup () |
| void | loop () |
Variables | |
| const char | ssid [] = "Enter-Your-SSID" |
| const char | pass [] = "Enter-Your-Password" |
| WiFiUDP | ntpUDP |
| String | currentTime |
| #define SERIAL_BAUD 115200 |
Baud rate for serial interface
Definition at line 16 of file example_ntp.cpp.
| void loop | ( | ) |
Definition at line 61 of file example_ntp.cpp.
References currentTime, and timeClient().
| void setup | ( | ) |
Definition at line 26 of file example_ntp.cpp.
References pass, ssid, and timeClient().
| String currentTime |
Definition at line 24 of file example_ntp.cpp.
Referenced by loop().
| WiFiUDP ntpUDP |
Definition at line 21 of file example_ntp.cpp.
| const char pass[] = "Enter-Your-Password" |
Definition at line 19 of file example_ntp.cpp.
Referenced by setup().
| const char ssid[] = "Enter-Your-SSID" |
Definition at line 18 of file example_ntp.cpp.
Referenced by setup().