Activated remote flashing
This commit is contained in:
parent
b38269166b
commit
1543af8777
@ -25,7 +25,6 @@ if [ $? -ne 0 ]; then
|
||||
exit 2
|
||||
fi
|
||||
echo "Upgrading $IP"
|
||||
exit 3
|
||||
|
||||
FILES="displayword.lua main.lua timecore.lua webpage.html webserver.lua wordclock.lua init.lua"
|
||||
|
||||
@ -44,7 +43,7 @@ for f in $FILES; do
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Reboot the ESP"
|
||||
echo "node.restart()" | nc $IP 80
|
||||
echo "TODO: Reboot the ESP"
|
||||
#echo "node.restart()" | nc $IP 80
|
||||
|
||||
exit 0
|
||||
|
@ -87,6 +87,10 @@ def main(nodeip, luafile, volatile=None):
|
||||
print "\rSending " + str(i) + "/" + str(len(contents)) + " ...",
|
||||
sys.stdout.flush()
|
||||
l = line.rstrip()
|
||||
if ( l.endswith("]") ):
|
||||
l = l + " "
|
||||
print "add a space at the end"
|
||||
|
||||
if (volatile is None):
|
||||
if (not sendCmd(s, "w([[" + l + "]]);")):
|
||||
print "Cannot write line " + str(i)
|
||||
|
Loading…
Reference in New Issue
Block a user