this will take a image from C328 serial camera and store those images in mbed flash as html and this html page is uploaded into the server at ip:192.168.1.2
lwip/SNTPClient/SNTPClient.h@0:e1a0471e5ffb, 2010-12-15 (annotated)
- Committer:
- mitesh2patel
- Date:
- Wed Dec 15 15:01:56 2010 +0000
- Revision:
- 0:e1a0471e5ffb
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mitesh2patel | 0:e1a0471e5ffb | 1 | #ifndef SNTPCLIENT_H |
mitesh2patel | 0:e1a0471e5ffb | 2 | #define SNTPCLIENT_H |
mitesh2patel | 0:e1a0471e5ffb | 3 | |
mitesh2patel | 0:e1a0471e5ffb | 4 | |
mitesh2patel | 0:e1a0471e5ffb | 5 | typedef enum {DST_START, DST_STOP} tDST_START; |
mitesh2patel | 0:e1a0471e5ffb | 6 | |
mitesh2patel | 0:e1a0471e5ffb | 7 | typedef struct DST_POINT { |
mitesh2patel | 0:e1a0471e5ffb | 8 | time_t t; // Point in time when DST switch happens (in localtime) |
mitesh2patel | 0:e1a0471e5ffb | 9 | signed int dst; // Active DST value (for gSntpDST) |
mitesh2patel | 0:e1a0471e5ffb | 10 | signed int dstshift; // DST shift value (regardless if it is active or not) |
mitesh2patel | 0:e1a0471e5ffb | 11 | } tDstPoint; |
mitesh2patel | 0:e1a0471e5ffb | 12 | |
mitesh2patel | 0:e1a0471e5ffb | 13 | typedef tDstPoint (*pFncDstCalc)(int tz, int year, tDST_START start); |
mitesh2patel | 0:e1a0471e5ffb | 14 | |
mitesh2patel | 0:e1a0471e5ffb | 15 | typedef enum { |
mitesh2patel | 0:e1a0471e5ffb | 16 | #define _(z, fnc, gmt, dst, hr1,wk1,wday1,mon1, hr2,wk2,wday2,mon2) z, |
mitesh2patel | 0:e1a0471e5ffb | 17 | #include "DstZones.h" |
mitesh2patel | 0:e1a0471e5ffb | 18 | DST_LAST // LAST ITEM IN ENUM |
mitesh2patel | 0:e1a0471e5ffb | 19 | } tDST_ZONE; |
mitesh2patel | 0:e1a0471e5ffb | 20 | |
mitesh2patel | 0:e1a0471e5ffb | 21 | void SNTPSetDstZone(tDST_ZONE zone, bool adjust_clock=false); |
mitesh2patel | 0:e1a0471e5ffb | 22 | const char *SNTPDstZoneName(tDST_ZONE zone); |
mitesh2patel | 0:e1a0471e5ffb | 23 | |
mitesh2patel | 0:e1a0471e5ffb | 24 | void SNTPSetRecvTimeout(unsigned int val_s); |
mitesh2patel | 0:e1a0471e5ffb | 25 | void SNTPSetUpdateDelay(unsigned int val_s); |
mitesh2patel | 0:e1a0471e5ffb | 26 | void SNTPSetTimezone(float hours_from_utc, bool adjust_clock=false); |
mitesh2patel | 0:e1a0471e5ffb | 27 | void SNTPSetDST(float hours_from_utc, bool adjust_clock=false); |
mitesh2patel | 0:e1a0471e5ffb | 28 | int SNTPSetAddresses(const char* server_addresses[], int count, void (*p_free)(void*)); |
mitesh2patel | 0:e1a0471e5ffb | 29 | int SNTPReadIniFile(const char* filename); |
mitesh2patel | 0:e1a0471e5ffb | 30 | void SNTPWriteIniFile(FILE * f); |
mitesh2patel | 0:e1a0471e5ffb | 31 | |
mitesh2patel | 0:e1a0471e5ffb | 32 | void SNTPClientInit(void); |
mitesh2patel | 0:e1a0471e5ffb | 33 | |
mitesh2patel | 0:e1a0471e5ffb | 34 | time_t SNTPTime(void); |
mitesh2patel | 0:e1a0471e5ffb | 35 | void SNTPSetTime(time_t seconds); |
mitesh2patel | 0:e1a0471e5ffb | 36 | |
mitesh2patel | 0:e1a0471e5ffb | 37 | time_t SNTPTimeUTC(void); |
mitesh2patel | 0:e1a0471e5ffb | 38 | void SNTPSetTimeUTC(time_t seconds); |
mitesh2patel | 0:e1a0471e5ffb | 39 | |
mitesh2patel | 0:e1a0471e5ffb | 40 | #endif // SNTPCLIENT_H |
mitesh2patel | 0:e1a0471e5ffb | 41 | //END |