ESP8266 SHT21 sensor
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425
  1. /*
  2. * ntp.h
  3. *
  4. * Simple NTP implementation to aquire the current time matched to the systick.
  5. *
  6. * ----------------------------------------------------------------------------
  7. * "THE BEER-WARE LICENSE" (Revision 42):
  8. * <xythobuz@xythobuz.de> & <ghost-ghost@web.de> wrote this file. As long as
  9. * you retain this notice you can do whatever you want with this stuff. If we
  10. * meet some day, and you think this stuff is worth it, you can buy us a beer
  11. * in return. Thomas Buck & Christian Högerle
  12. * ----------------------------------------------------------------------------
  13. */
  14. #ifndef __NTP_H__
  15. #define __NTP_H__
  16. extern unsigned long timestamp; // received epoch time, 0 until valid
  17. extern unsigned long timeReceived; // systick matching received epoch, 0 until valid
  18. void ntpInit(void);
  19. void ntpRun(void);
  20. #endif // __NTP_H__