Added example for telnet command

This commit is contained in:
ollo
2020-03-04 22:24:13 +01:00
parent 2f9f9fdc68
commit 344fb0ab9a
4 changed files with 19 additions and 4 deletions

View File

@@ -59,6 +59,6 @@ for f in $FILES; do
done
echo "Reboot the ESP"
$LUATOOL -p $DEVICE -r -b 115200
echo "node.restart()" >> $DEVICE
exit 0

View File

@@ -94,7 +94,7 @@ def main(nodeip, luafile, volatile=None):
print "add a space at the end"
if (volatile is None):
if (not sendCmd(s, "w([[" + l + "]]);")):
if (not sendCmd(s, "w([==[" + l + "]==]);")):
print "Cannot write line " + str(i)
s.close()
sys.exit(4)