diff --git a/src/main.py b/src/main.py index be8a816..ded62a0 100644 --- a/src/main.py +++ b/src/main.py @@ -33,20 +33,6 @@ def server(): addr = socket.getaddrinfo('0.0.0.0', 80)[0][-1] sensor = CSMS12() - html = """ - - - - ESP8266 Moisture Sensor v1.2 - - - -

Current moisture classification

-

%s

- - - """ - s = socket.socket() s.bind(addr) s.listen(1) @@ -63,6 +49,5 @@ def server(): if not line or line == b'\r\n': break - response = html % sensor.getInterval() - cl.send(response) + cl.send(sensor.getInterval()) cl.close()