mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-19 22:24:15 +01:00
added comment about panels with firmware < 126
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user