maak het een GET request anders werkt het niet
This commit is contained in:
2
dht11.py
2
dht11.py
@@ -29,7 +29,7 @@ def check_data():
|
|||||||
GPIO.output(FAN_PIN, GPIO.LOW)
|
GPIO.output(FAN_PIN, GPIO.LOW)
|
||||||
|
|
||||||
class handler_class(http.server.BaseHTTPRequestHandler):
|
class handler_class(http.server.BaseHTTPRequestHandler):
|
||||||
def do_WEB (self):
|
def do_GET (self):
|
||||||
if self.path == '/':
|
if self.path == '/':
|
||||||
self.send_response(200)
|
self.send_response(200)
|
||||||
self.send_header('Content-type', 'text/html; charset=utf-8')
|
self.send_header('Content-type', 'text/html; charset=utf-8')
|
||||||
|
|||||||
Reference in New Issue
Block a user