diff --git a/tasmota/README.md b/tasmota/README.md index 242f5af4..2ad56523 100644 --- a/tasmota/README.md +++ b/tasmota/README.md @@ -18,6 +18,7 @@ Send's normal Custom Commands to the Screen in the following format: - `FlashNextion URL` Start's flashing a tft file to the nextion screen via Nextion Upload Protocol 1.2 +Might be required to send the command twice (known issue, didn't investigate yet) Webserver must be reachable via HTTP and support Range Header diff --git a/tasmota/nextion.be b/tasmota/nextion.be index 1a1972a7..8f981126 100644 --- a/tasmota/nextion.be +++ b/tasmota/nextion.be @@ -263,6 +263,7 @@ class Nextion : Driver if (self.flash_mode==1) var str = msg[0..-4].asstring() log(str, 3) + # TODO: add check for firmware versions < 126 and send proto 1.1 command for thoose if (string.find(str,"comok 2")==0) #self.sendnx(string.format("whmi-wri %d,115200,1",self.flash_size)) # Nextion Upload Protocol 1.1 self.sendnx(string.format("whmi-wris %d,115200,1",self.flash_size)) # Nextion Upload Protocol 1.2