yet another 18B20 Temperature sensor. variable number of sensors working in parasite mode, serial 16x2 display with diagnostic output and post to a rest web service
Dependencies: EthernetInterface HTTPClient NTPClient mbed-rtos mbed
ntp_proxy.h@1:9e88b2508768, 2013-01-03 (annotated)
- Committer:
- wkinkeldei
- Date:
- Thu Jan 03 18:50:43 2013 +0000
- Revision:
- 1:9e88b2508768
- Parent:
- 0:53f05303850a
added switch sensor
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wkinkeldei | 0:53f05303850a | 1 | #ifndef NTP_PROXY_H |
wkinkeldei | 0:53f05303850a | 2 | #define NTP_PROXY_H |
wkinkeldei | 0:53f05303850a | 3 | |
wkinkeldei | 0:53f05303850a | 4 | #include "mbed.h" |
wkinkeldei | 0:53f05303850a | 5 | #include "NTPClient.h" |
wkinkeldei | 0:53f05303850a | 6 | |
wkinkeldei | 0:53f05303850a | 7 | class NtpProxy { |
wkinkeldei | 0:53f05303850a | 8 | NTPClient *ntp_client; |
wkinkeldei | 0:53f05303850a | 9 | |
wkinkeldei | 0:53f05303850a | 10 | public: |
wkinkeldei | 1:9e88b2508768 | 11 | NtpProxy(const char *timeserver); |
wkinkeldei | 0:53f05303850a | 12 | |
wkinkeldei | 0:53f05303850a | 13 | int set_time(void); |
wkinkeldei | 1:9e88b2508768 | 14 | |
wkinkeldei | 1:9e88b2508768 | 15 | private: |
wkinkeldei | 1:9e88b2508768 | 16 | const char *timeserver; |
wkinkeldei | 0:53f05303850a | 17 | }; |
wkinkeldei | 0:53f05303850a | 18 | |
wkinkeldei | 0:53f05303850a | 19 | #endif |