Port from Avnet's Internet Of Things full WiGo demo: SmartConfig - WebServer - Exosite - Android sensor Fusion App

Dependencies:   NVIC_set_all_priorities mbed cc3000_hostdriver_mbedsocket TEMT6200 TSI Wi-Go_eCompass_Lib_V3 WiGo_BattCharger

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers AvnetHTML.h Source File

AvnetHTML.h

00001 #ifndef AVNET_HTML_H
00002 #define AVNET_HTML_H
00003 
00004 #ifdef    __cplusplus
00005 extern "C" {
00006 #endif
00007 
00008 // ---------- HTML Webpage Content is defined here ----------
00009 // Caution! Field labels and spaces in the HTML should not be edited without making corresponding changes in the C-code!
00010 char index[] = {
00011 "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"><html lang=\"en-US\">"
00012 "<head>"
00013 "<META content=\"text/html;charset=ISO-8859-1\" http-equiv=\"content-type\">"
00014 "<title>Wi-Go WebServer</title>"
00015 "<META HTTP-EQUIV=\"refresh\" content=\"2\">"   // Uncomment for auto-refresh every 2 seconds
00016 "</head>"
00017 
00018 "<body><div style=\"text-align: left\"><font size=\"6\" color=\"Red\" face=\"Tahoma\">"
00019 "<b>Avnet Wi-Go Webserver</b></font>"
00020 "<hr size=3 width=600 align=left>"
00021 "<font size=\"5\" color=\"Red\" face=\"Tahoma\"><b>LED RGB color select...</b></font>"
00022 
00023 //"<font size=\"5\" color=\"Black\" face=\"monospace\"></font>" 
00024 "<form method=\"get\" action=\"index.html\" name=\"server\">"
00025 "<input name=\"ledCon\" type=\"submit\" value=\"-Red-\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
00026 "<input name=\"ledCon\" type=\"submit\" value=\"Green\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
00027 "<input name=\"ledCon\" type=\"submit\" value=\"Blue-\">"
00028 "</form></div>" 
00029 
00030 "<hr size=3 width=600 align=left>"
00031 "<div style=\"text-align: left\"><font size=\"5\" color=\"Red\" face=\"Tahoma\">"
00032 "<b>Navigation Sensors</b></font></div>"
00033 
00034 "<div style=\"text-align:left\"><font size=\"4\" color=\"Black\" face=\"monospace\"><b>"
00035 "Acceleration(G)..                                       <br>"
00036 "Magnetometer(uT).                                       <br>"
00037 "eCompass.........                                         <br>"
00038 "Altitude.........                <br></b></font></div>"
00039 
00040 "<hr size=3 width=600 align=left>"
00041 "<div style=\"text-align: left\"><font size=\"5\" color=\"Red\" face=\"Tahoma\">"
00042 "<b>Status and Control</b></font></div>"
00043 
00044 "<div style=\"text-align:left\"><font size=\"4\" color=\"Black\" face=\"monospace\"><b>"
00045 "Battery Voltage..       <br>"
00046 "Ambient Light....       <br>"
00047 "Temperature......          <br>"
00048 "Slider Position..          <br>"
00049 "Page Views.......        </b></font>"
00050 "<hr size=3 width=600 align=left>"
00051 "</body></html>"};  // delete this line if adding the SVG code below...
00052 
00053 // Optional section 1: Full SVG graphic example: Uncomment this section to display the standard Wi-Fi logo in lower area of webpage
00054 // Browsers supporting SVG: Chrome and FireFox (all versions), Android (3.0 onwards), Safari (5.0 onwards), IE (9.0 onwards?)
00055 /*
00056 "<!--[if !IE]><!-->"  // This prevents SVG content being sent to Internet Explorer
00057 "<svg>" 
00058 "xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"175.49\" width=\"400\""
00059 "xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\""
00060 "xmlns:cc=\"http://creativecommons.org/ns#\""
00061 "xmlns:dc=\"http://purl.org/dc/elements/1.1/\">"
00062 "<defs></defs>"
00063 "<metadata>"
00064 "<rdf:RDF>"
00065 "<cc:Work rdf:about=\"\">"
00066 "<dc:format>image/svg+xml</dc:format>"
00067 "<dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>"
00068 "<dc:title/>"
00069 "</cc:Work>"
00070 "</rdf:RDF>"
00071 "</metadata>"
00072 "<g transform=\"translate(-309.85919,-343.20843)\">"
00073 "<g transform=\"matrix(3.7361528,0,0,-3.7361528,576.05074,474.82936)\">"
00074 "<path fill-rule=\"nonzero\" fill=\"#231f20\" d=\"m0,0c4.977,0,9.049,4.077,9.049,9.049v5.389c0,4.973-4.072,9.048-9.049,9.048h-35.433c-4.973,0-9.049-4.075-9.049-9.048v-5.389c0-4.972,4.076-9.049,9.049-9.049\"/>"
00075 "</g>"
00076 "<g transform=\"matrix(3.7361528,0,0,-3.7361528,514.3818,441.01715)\">"
00077 "<path fill-rule=\"nonzero\" fill=\"#FFF\" d=\"m0,0,0,5.389c0,4.072,3.314,7.32,7.32,7.32h9.187c4.007,0,7.253-3.248,7.253-7.32v-5.389c0-4.005-3.246-7.32-7.253-7.32h-20.239c2.281,1.656,3.732,4.284,3.732,7.32\"/>"
00078 "</g>"
00079 "<g transform=\"matrix(3.7361528,0,0,-3.7361528,469.99257,451.60916)\">"
00080 "<path fill-rule=\"nonzero\" fill=\"#FFF\" d=\"m0,0-3.043,0-0.55,2.56c-0.345,1.794-0.692,4.005-0.761,4.833-0.069-0.828-0.416-3.039-0.825-4.833l-0.555-2.56h-2.968l-2.767,11.748h3.317l0.343-2.004c0.276-1.66,0.556-3.659,0.695-5.044,0.136,1.385,0.481,3.384,0.896,5.044l0.412,2.004h2.972l0.413-2.004c0.348-1.66,0.693-3.659,0.833-5.044,0.136,1.385,0.482,3.384,0.757,5.044l0.278,2.004h3.313\"/>"
00081 "</g>"
00082 "<g transform=\"matrix(3.7361528,0,0,-3.7361528,491.40819,416.23898)\">"
00083 "<path fill-rule=\"nonzero\" fill=\"#FFF\" d=\"m0,0c-0.968,0-1.727,0.553-1.727,1.451,0,0.899,0.759,1.45,1.727,1.45,1.036,0,1.796-0.551,1.796-1.45,0-0.898-0.76-1.451-1.796-1.451m-1.521-0.968,3.0401,0,0-8.4984-3.0401,0,0,8.4984z\"/>"
00084 "</g>"
00085 "<g transform=\"matrix(3.7361528,0,0,-3.7361528,541.9845,418.05849)\">"
00086 "<path fill-rule=\"nonzero\" fill=\"#231f20\" d=\"m0,0,0-2.618,6.22,0,0-2.767-6.22,0,0-3.593-3.247,0,0,11.748,10.156,0,0-2.77\"/>"
00087 "</g>"
00088 "<g transform=\"matrix(3.7361528,0,0,-3.7361528,580.44446,416.23898)\">"
00089 "<path fill-rule=\"nonzero\" fill=\"#231f20\" d=\"m0,0c-0.97,0-1.727,0.553-1.727,1.451,0,0.899,0.757,1.45,1.727,1.45,1.035,0,1.797-0.551,1.797-1.45,0-0.898-0.762-1.451-1.797-1.451m-1.521-0.968,3.0371,0,0-8.4984-3.0371,0,0,8.4984z\"/>"
00090 "</g>"
00091 "</g>"
00092 "</svg>"
00093 "<!--<![endif]-->"  
00094 */                // end of conditional inclusion of SVG graphic (excludes Internet Explorer browser)
00095 // ---- End of Wi-Fi logo SVG image definition ----
00096 
00097 // Optional section 2: Simple SVG graphic example: Uncomment this section to generate a filled circle  in lower area of webpage
00098 // eg. Could use to indicate RGB LED color (with addition of applicable C-code to dynamically update specified "fill=" color)
00099 /*
00100 "<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">"
00101 "<circle cx=\"155\" cy=\"22\" r=\"20\" stroke=\"DimGrey\" stroke-width=\"2\" fill=\"Red\"/>"
00102 "</svg>"
00103 "</body></html>"};
00104 */
00105 
00106 #ifdef    __cplusplus
00107 }
00108 #endif // __cplusplus
00109 #endif // AVNET_HTML_H
00110 
00111 
00112 
00113