This repository was archived by the owner on Jan 26, 2025. It is now read-only.
  
  
  
  
  
Description
Running this:
#nodemcu-uploader --baud 115200 exec dfplayer-test.lua 
 
Result in dfplayer-test.lua being executed char by char:
opening port /dev/ttyUSB0 with 115200 baud
Execute dfplayer-test.lua
> p
>> =
>> r
> e
>> q
stdin:2: '=' expected near 'q'
> u
...
 
Changing utils.py to this seems to fix it:
def from_file(path):
    with open(path, 'rb') as f:
        content = f.readlines()
    return content if PY2 else [ c.decode(ENCODING) for c in content ]
 
But causes a lot of other problems ;-(