Open Rafiki22 opened 6 years ago
Hi Rafiki,
This was actually developed on a Windows box, and was not tested on MacOS, so it's possible it may need some slight adjustments to work in that environment.
It looks like it's opening the COM port, issuing a Reset, then just waiting for a prompt from the NodeMCU...
Please try changing the "Reset" parameter to False, you might not need the additional Reset command.
If that doesn't work, it might be an encoding thing when awaiting the prompt, so it might take a little troubleshooting. Unfortunately I don't use the lua framework for NodeMCU anymore (nor sublime), though I'd be happy to help troubleshoot and make a patch.
Hello be pursuant! Thank you for reply! After changing Reset to False, I got this message :
/Users/raf/.bash_profile: line 8: hub: command not found
[SublimeNodeMCU] Uploading...
Opening serial port /dev/cu.wchusbserial1d1140:115200...ok!
If nothing happens, try setting reset = True in SublimeNodeMCU.py
Traceback (most recent call last):
File "/Users/raf/Library/Application Support/Sublime Text 3/Packages/User/SublimeNodeMCU/SublimeNodeMCU.py", line 127, in <module>
sendReceiveScript(ser, filename); #send receive script to NodeMCU to get ready to receive data
File "/Users/raf/Library/Application Support/Sublime Text 3/Packages/User/SublimeNodeMCU/SublimeNodeMCU.py", line 48, in sendReceiveScript
assert len(save_command) < 256, 'Save_command too long: %s bytes' % len(save_command)
AssertionError: Save_command too long: 258 bytes
[Finished in 0.4s with exit code 1]
[shell_cmd: "python" -u "/Users/raf/Library/Application Support/Sublime Text 3/Packages/User/SublimeNodeMCU/SublimeNodeMCU.py" "/Users/raf/Desktop/ESP8266new/ESP8266new.ino"]
[dir: /Users/raf/Desktop/ESP8266new]
[path: /Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/Users/raf/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Applications/Lineman.app/Contents/MacOS]
If you think that it's going to take too long time and you don't have it, let me know. I am not going to be mad :), I am actually almost gave up and found VS Code IDE with PlatformIO support and looks like it is not too bad editor. It's just sad that such a nice editor like Sublime is so tricky to set up. Cheers!
Hello! I have a simple script for DHT11 sensor working with Cayenne ioT.
I added this nice little SublimeNodeMCU script and edited SublimeNodeMCU.py
and SublimeNodeMCU.sublime-build files:
But I have feeling I am missing something. After pressing F7 I am getting this error:
and building simply stops.
Any ideas ??? Thank you in advance!