Question about the functions in the example: TimeNTP_ESP8266WiFi.ino

From the sketch: File > Examples > Time > TimeNTP_ESP8266WiFi
Lines 32-35 are:

time_t getNtpTime();
void digitalClockDisplay();
void printDigits(int digits);
void sendNTPpacket(IPAddress &address);

There are 4 functions after void loop() (where I'm used to seeing them) called, void digitalClockDisplay(), void printDigits(int digits), time_t getNtpTime(), void sendNTPpacket(IPAddress &address). Why are their names mentioned in lines 32-35?

The are Function Prototypes. Not usually need when using the Arduino IDE. However, they are required when doing real-world C/C++ programming.

Thanks, good to know.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.