add webtest.cmd for python testing of webserver
This commit is contained in:
parent
407581451b
commit
d0b824963b
@ -4,7 +4,7 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>My test page</title>
|
<title>My test page</title>
|
||||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css">
|
<link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css">
|
||||||
<link href="styles/style.css" rel="stylesheet" type="text/css">
|
<link href="style.css" rel="stylesheet" type="text/css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Mozilla is cool</h1>
|
<h1>Mozilla is cool</h1>
|
||||||
|
2
include/webtest.cmd
Normal file
2
include/webtest.cmd
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
CD .\include\http
|
||||||
|
py.exe -m http.server
|
@ -81,9 +81,8 @@ void setup_webserver() {
|
|||||||
Serial.print("IP address: ");
|
Serial.print("IP address: ");
|
||||||
Serial.println(WiFi.localIP());
|
Serial.println(WiFi.localIP());
|
||||||
|
|
||||||
//server.on("/", handleRoot);
|
|
||||||
server.on("/", handleRootGz);
|
server.on("/", handleRootGz);
|
||||||
server.on("/styles/style.css", handleCssGz);
|
server.on("/style.css", handleCssGz);
|
||||||
server.onNotFound(handleNotFound);
|
server.onNotFound(handleNotFound);
|
||||||
|
|
||||||
server.begin();
|
server.begin();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user