Flash tool works with Nodemcu 2.2

This commit is contained in:
ollo 2019-04-18 20:34:28 +02:00
parent 18da5e7e3b
commit f67f53d223
2 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,8 @@ if [ $? -ne 0 ]; then
fi fi
echo "Upgrading $IP" echo "Upgrading $IP"
echo "stopWordclock()" | nc $IP 80 echo "stopWordclock()" > /tmp/wordClockCMD.txt
$FLASHTOOL -f /tmp/wordClockCMD.txt -t $IP -v
FILES="displayword.lua main.lua timecore.lua webpage.html webserver.lua wordclock.lua init.lua" FILES="displayword.lua main.lua timecore.lua webpage.html webserver.lua wordclock.lua init.lua"

View File

@ -112,7 +112,7 @@ def main(nodeip, luafile, volatile=None):
sys.exit(4) sys.exit(4)
# Check if the file exists: # Check if the file exists:
if (not sendRecv(s, "=file.open(\"" + luafile + "\")", "true")): if (not sendRecv(s, "=file.exists(\"" + luafile + "\")", "true")):
print("Cannot send " + luafile + " to the ESP") print("Cannot send " + luafile + " to the ESP")
sys.exit(4) sys.exit(4)
else: else: