cendev wrote:posted a small python script that can upload code via command line for linux like
<snip>
but no experiance on mac
Hi,
I saw your Python script to upload, interesting. I could run this python script on my Mac, probably without major changes.
Your solution is based on a TCP connection between PC and ESP.
Personally I prefer using the serial port for now.
I intend to write a simple BASH script that sends lua commands that you would normally type in the console. Intended steps:
- send "file.open(filename)"
- read textfile with lua script on PC line-by-line, and embed it in a "file.write" statement, and send the line to the ESP
- send "file.close"
- send "dofile filename"
This would have, for me , the advantage that I do not have to type in the lua upload program in the terminal, before I can start uploading. I hate typing ….
Thanks for sharing your solution, will keep it in mind. Will share my BASH solution when it works.