upload lua files seems straight forward?!?!
Posted: Wed Jul 18, 2018 4:23 pm
So im pretty new to the MCU world. I am trying to upload some lus files and I am lost as to whats going on. I am on a Mac and trying to use luatool that i cloned from github. I have Python 2.7.10 installed as well. here is the command and error:
python luatool/luatool.py --port /dev/cu.wchusbserial1460 --src ~/Downloads/konnected-security-master/src/actuators.lua --dest actuators.lua --restart
->file.open("actuators.lua", "w")
->file.close()
->file.remove("actuators.lua")
->file.open("actuators.lua", "w+")
->file.writeline([==[local actuators = {}]==])
->file.writeline([==[return actuators]==])
->file.flush()
->file.close()Traceback (most recent call last):
File "luatool/luatool.py", line 330, in <module>
transport.writeln("file.close()\r")
File "luatool/luatool.py", line 122, in writeln
self.performcheck(data)
File "luatool/luatool.py", line 93, in performcheck
if char == chr(62) and expected[i] == char:
IndexError: string index out of range
no idea were to start. tried google but not sure what the actual issue is that i need to sort. I know it says line 93 but not sure what should even be there. any direction would be awesome! thanks
python luatool/luatool.py --port /dev/cu.wchusbserial1460 --src ~/Downloads/konnected-security-master/src/actuators.lua --dest actuators.lua --restart
->file.open("actuators.lua", "w")
->file.close()
->file.remove("actuators.lua")
->file.open("actuators.lua", "w+")
->file.writeline([==[local actuators = {}]==])
->file.writeline([==[return actuators]==])
->file.flush()
->file.close()Traceback (most recent call last):
File "luatool/luatool.py", line 330, in <module>
transport.writeln("file.close()\r")
File "luatool/luatool.py", line 122, in writeln
self.performcheck(data)
File "luatool/luatool.py", line 93, in performcheck
if char == chr(62) and expected[i] == char:
IndexError: string index out of range
no idea were to start. tried google but not sure what the actual issue is that i need to sort. I know it says line 93 but not sure what should even be there. any direction would be awesome! thanks