ESP8266 SHT21 sensor
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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__