fix HTTP chunked transfer encoding, since WebServer class doesnt support it. this fixes the 2 second delay in some browsers. (we where out of spec.)

This commit is contained in:
Edwin Eefting
2017-07-14 01:42:50 +02:00
parent 1bbbaa18f7
commit f9ce235b32
2 changed files with 23 additions and 5 deletions
+13
View File
@@ -4,6 +4,7 @@ import time
import subprocess
import wificonfig
import requests
import serial.tools.miniterm
def log(txt):
@@ -92,6 +93,11 @@ class Esp():
def serial(self):
"""open serial terminal to esp"""
subprocess.check_call("platformio serialports monitor --baud 115200 --port {port} --echo".format(**self._config), shell=True, cwd='..')
# print("JA")
# term=serial.tools.miniterm.Miniterm(self._serial)
# term.start()
# term.join()
# print("kk")
def erase(self):
@@ -99,6 +105,13 @@ class Esp():
subprocess.check_call("esptool.py --port {port} -b 1500000 erase_flash".format(**self._config), shell=True, cwd='..')
def bfs(self):
"""build + flashserial + serial, all in one"""
self.build()
self.flashserial()
self.serial()
def config_device(self):
r=requests.post(