Common stuff for all my devices' web server pages: css, login, log, ipv4, ipv6, firmware update, clock, reset info etc.

Dependents:   oldheating gps motorhome heating

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers web-favicon.c Source File

web-favicon.c

00001 #include "http.h"
00002 
00003 //Use http://tomeko.net/online_tools/file_to_hex.php to convert a favicon.ico into hex readable as an array
00004 static const char bytes[] = {
00005 #include "favicon/web-favicon.inc"
00006 };
00007 
00008 const char* WebFaviconDate = __DATE__;
00009 const char* WebFaviconTime = __TIME__;
00010 const int   WebFaviconSize = sizeof(bytes);
00011 
00012 void WebFavicon()
00013 {
00014     HttpOk("image/x-icon", "max-age=3600", WebFaviconDate, WebFaviconTime);
00015     HttpAddData(bytes, WebFaviconSize);
00016 }