Chat about current Lua tools and IDEs
User avatar
By mrluck
#51714 From now on all releases of ESPresso (current and old) will be available at:
http://www.cielecki.pl/espresso/download-espresso/


UPDATE 2017-08-14
New Windows version (v.0.4.0.0) is out!
This release that catches up with changes that were already available in Linux ESPresso. Additionally NodeMCU firmware type autodetection (INT / FLOAT) was introduced to customise LuaSrcDiet commands. This should be useful for integer firmware users since default LuaSrcDiet settings may produce results unreadable for integer NodeMCU.

New ESPresso introduces configurable ESP reset button and some connection procedures improvements.

This edition includes new, extensive documentation (created with Sphinx) which is also available online.

  • Fixed deleting of temporary files used by LuaSrcDiet
  • Automatic integer/float NodeMCU firmware recognition
  • Added distinct LuaSrcDiet options for integer and float NodeMCU firmwares
  • Extensive documentation created
  • Configurable ESP reset function
  • Connection timeouts and retries
UPDATE 2017-02-05:
New Linux version (v.0.3.0.0) is out! It mainly catches last changes in Windows version up but also introduces some new features and fixes some bugs:
  • Binary transfer and interpreted LuaSrcDiet. Please note that ESPresso package contains LuaSrcDiet that runs on Lua 5.1.
  • Fixed bug that could make in rare circumstances some files missing during the first directory scan after connect.
  • New rename dialog box. Inspired by Freecommander rename window. It has a NodeMCU specific feature as well: you can rename both lc and lua filea with one click.
  • Some user interface bug fixes and improvements - more keyboard shortcuts.
  • Added possibility to pass optional parameters to LuaSrcDiet (ini file entry). It may be useful to add --no-opt-numbers if you have integer version of NodeMCU.

UPDATE 2016-12-09:
I'm glad to announce that new version of ESPresso (v.0.2.0.0) is out. It introduces some important features and improvements as well as some bug fixes:
  • New binary transfer mode that provides 100% carbon copy of source file on ESP side. This is the most important change which solves problems with CR/LF transfer.
  • Redesigned LuaSrcDiet compression. Now it uses interpreted script along with Lua interpreter. Also an up-to-date version of LuaSrcDiet is included in the package.
  • Source file preview with Lua syntax highlighting. That's something I was really missing in the previous release. Now you can quickly review you file before transfer to ESP.
  • Some user interface bugfixes and improvements.

I'd like to thank jankop for his reviews of ESPResso and beta-testing.
This release contains Win32 and Win64 binaries. Linux update will be released soon.

UPDATE 2016-08-09:
Linux 64 binary for gtk2 added. Tested under Kubuntu 14.10.

Hi,

I’m currently developing a motorized awning driver project (which I hope I’ll be ready to present in couple of weeks) that uses ESP8266 and NodeMCU. The problem I had was that to physically access the driver itself a ladder was necessary. Not a big deal unless I wanted to update my Lua files couple of times a day.

After some research I found a solution. Unfortunately it involves some additional software (for virtual COM ports) and even though I was able to communicate with ESP via console, uploading Lua files using standard means (ESPlorer, LuaLoader) in most cases ended with failures.

That’s why I decided to write my own piece of software which I (obviously) named 'ESPresso'.

You may say it’s another Lua uploader but it differs from ESPlorer or LuaLoader in some crucial aspects:
  • First of all: it connects to ESP directly over TCP/IP port (in other words – over WiFi). It’s not using any serial port (physical or virtual). No additional software on computer side is required. The only thing you need is to run the daemon script on the ESP side (standard script from NodeMCU docs that redirects serial output to TCP – see below for details).
  • It represents a two pane filemanager approach. It’s not trying to be an IDE. It’s designed to effectively send files to ESP, compile them and run. All these things are IMHO only an addition in other state-of-the-art ESP managers. For ESPresso file management on ESP is the main task.
  • It can “diet” uploaded files using “LuaSrcDiet” on the fly.
  • It’s equipped with a built-in ADC monitor with simple graph.

main.png
ESPresso main window.

esp_adc.png
ESPresso ADC monitor.

rename.png
ESPresso rename dialog box.


Sounds good? Ok. Here is what you need:
  1. A computer. Binaries for Windows (both 32 or 64 bit) and Linux (64 bit, gtk2) are provided.
  2. An ESP8266 working under NodeMCU (the newer the better). You need to run a 'telnet' script. You may use the one from NodeMCU examples or use your own (it should simply redirect all serial output to TCP socket and grab all the data from the socket and send it to the NodeMCU interpreter). CAUTION: Telnet script from old NodeMCU docs which was copied to many websites is NOT working properly with new NodeMCU versions. Use the one from Github.

For more details and instructions please look into the readme.txt file in the archive attached.

This software was written as a commodity for my ESP project. I’ve got some ideas for its further development so if you like ESPresso just let me know by posting here to encourage me to keep working on it.

Thanks,

Lucas

Downloads of all releases of ESPresso (current and old) are be available at:
http://www.cielecki.pl/espresso/download-espresso/
Last edited by mrluck on Mon Aug 14, 2017 5:34 pm, edited 4 times in total.
User avatar
By mrluck
#52294 Hi AH SH,

AH SH wrote:Im a bit confused
in the beggining, do I need to connect the esp8266 module to computer using cable or not??
if not how do I upload telnet script?


Yes - you need to connect the ESP8266 module to the computer using cable - at least once. You need to upload the telnet script (using standard means) and also make sure that it's running (you can add dofile('telnet.lua') to you 'init.lua' script.
Another thing is that ESP needs to be in your network and have an IP address assigned.

Best regards,

Lucas
User avatar
By jankop
#54430 Hi Lukasz,
I tried the ESPresso and it worked on the first time. I must thank you for the Windows version , I do not use Linux . I had a problem only when using DIET. After transferring have been the files damaged. It still my homework , because I have no experience with LuaSrcDiet.
Because my frequent applications are tiny ESP8266 web servers , I will try to do a mechanism to incorporate WiFi Upload in to them. I already have some idea.

It's simple , clear and useful, thanx for your good job.
Pavel

Added:
Program LuaSrcDiet me causing errors . Clears characters space that are missing for Lua interpreter.

Example
original row:
client:send(string.sub(buff1,1, (#buff1 > 1460) and 1460 or #buff1),
row compresed with DIET:
client:send(string.sub(buff1,1,(#buff1>1460)and 1460or#buff1),
error for compresed row:
stdin:1: baro07T3_.lua:104: malformed number near '1460or'