Library Hebergement.h

Dependents:   Nucleo_Web_ENC28J60 Nucleo_Web_ENC28J60_ADC

Committer:
Fo170
Date:
Thu Jul 07 22:44:36 2016 +0000
Revision:
5:96216ff68185
Parent:
4:11e8d85ca94c
WIZwiki-W7500_ADC + Flot Exemple interactivity

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Fo170 0:d1929cbe2915 1 #define __hebergement__ "http://olivier.fournet.free.fr/"
Fo170 0:d1929cbe2915 2 #define __Time_between_page_refresh__ "1"
Fo170 0:d1929cbe2915 3
Fo170 5:96216ff68185 4 #if defined(TARGET_NUCLEO_F411RE)
Fo170 0:d1929cbe2915 5 const string str_meta_refresh = "<meta http-equiv=\"refresh\" content=\"" __Time_between_page_refresh__ ";url=http://" __IP_LOCAL__ "/\">";
Fo170 5:96216ff68185 6 const string str_JavaScript = "<script language=\"javascript\" type=\"text/javascript\" src=\"" __hebergement__ "electronique/e/WebServerNucleo/js/WebServerNucleo_Interactivity_init.js\"></script>\r\n";
Fo170 5:96216ff68185 7 #endif
Fo170 0:d1929cbe2915 8
Fo170 5:96216ff68185 9 #if defined(TARGET_WIZwiki_W7500)
Fo170 5:96216ff68185 10 const string str_meta_refresh = "<meta http-equiv=\"refresh\" content=\"" __Time_between_page_refresh__ ";url=http://%s/\">";
Fo170 5:96216ff68185 11 const string str_JavaScript = "<script language=\"javascript\" type=\"text/javascript\" src=\"" __hebergement__ "electronique/e/WIZwiki-W7500/js/WIZwiki-W7500_Interactivity_init.js\"></script>\r\n";
Fo170 5:96216ff68185 12 #endif
Fo170 0:d1929cbe2915 13
Fo170 0:d1929cbe2915 14 const string str_Compilation_DATE_AND_TIME = "<p>Compilation avec mBED &agrave; " __TIME__ " le " __DATE__" \r\n";
Fo170 0:d1929cbe2915 15
Fo170 0:d1929cbe2915 16 // Logo Test d'image en base64 :
Fo170 0:d1929cbe2915 17 // http://webcodertools.com/imagetobase64converter/Create
Fo170 0:d1929cbe2915 18 // const string str_Logo_image = "<img alt='' src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwwAADsMBx2+oZAAAABp0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjUuMTAw9HKhAAAAUklEQVQ4T2NggIEGMIBzCTDgSh0cHAjrIcFgiGFoGoCWELYQrgLIgGsg4CtkaTibWNfu378fq2tpHx6EbcAMQ8J6iPU3cpIhbCqaisFpCTwVAwB5lit+0ltbrgAAAABJRU5ErkJggg=='>";
Fo170 0:d1929cbe2915 19 const string str_favicon = "<LINK REL=\"SHORTCUT ICON\" type=\"image/x-icon\" href=\"" __hebergement__ "favicon.ico\">\r\n<link rel=\"icon\" href=\"" __hebergement__ "favicon.ico\" type=\"image/x-icon\">";
Fo170 0:d1929cbe2915 20
Fo170 3:8f40eff6b3ce 21 #define __image_password_folder__ "password_folder.jpg"
Fo170 3:8f40eff6b3ce 22 const string str_image_Password_Folder = "<img alt='' src='" __hebergement__ "jpg/" __image_password_folder__ "'>";
Fo170 3:8f40eff6b3ce 23
Fo170 4:11e8d85ca94c 24 #define __image_password_folder_x64__ "password_folder_x64.png"
Fo170 4:11e8d85ca94c 25 const string str_password_folder_x64 = "<img alt='' src='" __hebergement__ "png/" __image_password_folder_x64__ "'>";
Fo170 4:11e8d85ca94c 26
Fo170 3:8f40eff6b3ce 27 #define __image_301_Moved_Permanently__ "301_moved_permanently.jpg"
Fo170 3:8f40eff6b3ce 28 const string str_moved_perm = "<img alt='' src='" __hebergement__ "jpg/" __image_301_Moved_Permanently__ "'>";
Fo170 3:8f40eff6b3ce 29
Fo170 3:8f40eff6b3ce 30 #define __image_401_Unauthorized__ "401_Unauthorized.png"
Fo170 3:8f40eff6b3ce 31 const string str_Unauthorized = "<img alt='' src='" __hebergement__ "png/" __image_401_Unauthorized__ "'>";
Fo170 0:d1929cbe2915 32
Fo170 3:8f40eff6b3ce 33 #define __image_ampoule_OFF__ "ampoule_OFF_x32.png"
Fo170 3:8f40eff6b3ce 34 const string str_ampoule_OFF = "<img alt='' src='" __hebergement__ "png/" __image_ampoule_OFF__ "'>";
Fo170 3:8f40eff6b3ce 35
Fo170 3:8f40eff6b3ce 36 #define __image_ampoule_ON__ "ampoule_ON_x32.png"
Fo170 3:8f40eff6b3ce 37 const string str_ampoule_ON = "<img alt='' src='" __hebergement__ "png/" __image_ampoule_ON__ "'>";
Fo170 0:d1929cbe2915 38
Fo170 3:8f40eff6b3ce 39 #define __image_thermometre__ "thermometre_x64.png"
Fo170 3:8f40eff6b3ce 40 const string str_thermometre = "<img alt='' src='" __hebergement__ "png/" __image_thermometre__ "'>";
Fo170 0:d1929cbe2915 41
Fo170 3:8f40eff6b3ce 42 #define __image_chrono__ "chrono_x64.png"
Fo170 3:8f40eff6b3ce 43 const string str_chrono = "<img alt='' src='" __hebergement__ "png/" __image_chrono__ "'>";
Fo170 4:11e8d85ca94c 44
Fo170 4:11e8d85ca94c 45 #define __image_battery__ "battery_x64.png"
Fo170 4:11e8d85ca94c 46 const string str_battery = "<img alt='' src='" __hebergement__ "png/" __image_battery__ "'>";
Fo170 0:d1929cbe2915 47 //-------------------
Fo170 0:d1929cbe2915 48
Fo170 0:d1929cbe2915 49 const string HTTP_OK = "HTTP/1.0 200 OK";
Fo170 0:d1929cbe2915 50 const string MOVED_PERM = "HTTP/1.0 301 Moved Permanently\r\nLocation: ";
Fo170 1:cdb8b0e889cb 51 const string UNAUTHORIZED = "HTTP/1.0 401 Unauthorized";
Fo170 1:cdb8b0e889cb 52
Fo170 1:cdb8b0e889cb 53 #define ON 1
Fo170 2:b71f5a2b31bc 54 #define OFF 0
Fo170 2:b71f5a2b31bc 55
Fo170 2:b71f5a2b31bc 56 const string str_DOCTYPE = "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\r\n";