ESP8266 SHT21 sensor
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

ntp.h 874B

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__