mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-28 04:07:47 +00:00
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:
+13
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user