-->
Page 1 of 5

esp-link 2.1.7 - serial bridge, programmer, mqtt, rest

PostPosted: Thu Dec 31, 2015 6:16 pm
by tve
Esp-link connects an attached micro-controller to the internet using an ESP8266 Wifi module. It implements the following features:
- transparent bridge between Wifi and serial, useful for debugging or inputting into a uC
- flash-programming attached Arduino/AVR microcontrollers, esp8266 modules, as well as LPC800-series and other ARM microcontrollers via Wifi
- built-in stk500v1 programmer for AVR uC's with optiboot: program using HTTP upload of hex file
- outbound TCP (and thus HTTP) connections from the attached micro-controller to the internet
- outbound REST HTTP requests from the attached micro-controller to the internet, protocol based on espduino and compatible with tuanpmt/espduino
- web interface to configure esp-link, including simple console for the serial port

I'm creating this new thread on the occasion of the 2.1.7 release, which has been stable for a while. Info about esp-link itself can be found at https://github.com/jeelabs/esp-link and the release itself can be downloaded at https://github.com/jeelabs/esp-link/releases/tag/v2.1.7
If you have questions, post here or head over to https://gitter.im/jeelabs/esp-link

Re: esp-link 2.1.7 - serial bridge, programmer, mqtt, rest

PostPosted: Sun Jan 03, 2016 11:23 pm
by X7JAY7X
Thanks for the awesome project!

I am having a few issues compiling under Windows. I am using VS2013 and am able to successfully build the project if I turn off GZIP compression. When I turn it on it gives the following:

main.c:26:18: fatal error: zlib.h: No such file or directory
#include <zlib.h>
^
compilation terminated.
make[1]: *** [main.o] Error 1


I installed zlib in MinGW and pointed the espmake.cmd and the esp-link.vcxproj to "C:\MinGW\msys\1.0\lib" where the zlib.h file exists. VS can see the zlib.h file if I right click and view it then VS will open it. Why is the build still failing?


The other issues is OTA programming. I setup the correct IP in the makefile and get the following error when it tries to upload:

./wiflash 192.168.1.161 firmware/user1.bin firmware/user2.bin
Flashing user2.bin
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
Error flashing firmware/user2.bin
make: *** [wiflash] Error 1



Any help would be greatly appreciated. Thanks

Re: esp-link 2.1.7 - serial bridge, programmer, mqtt, rest

PostPosted: Mon Jan 04, 2016 12:30 am
by tve
Did you check https://github.com/jeelabs/esp-link/blo ... WINDOWS.md for ideas about building under windows? If that doesn't help, I suggest you ask on the gitter chat, there are often a number of people who have built esp-link under windows there to help.

WRT the curl error, that seems very strange. I use wiflash all the time, but not under windows. I seem to remember someone reporting something similar a while ago under windows, but I don't remember the fix. Using -v with wiflash may shed some light?

Re: esp-link 2.1.7 - serial bridge, programmer, mqtt, rest

PostPosted: Mon Jan 04, 2016 1:33 am
by jeffrey92
Just wanna say thanks for all the work you and others have put into this. It made the transition back into the land of C a lot easier on me! The Ajax methods for the static pages were particularly helpful for me. I also snagged some of the gzip code from espfs and integrated it with spiffy + spiffs. :D

BTW I was wondering if perhaps you could explain the way the html files are loaded? Right now with spiffs my browser wants to re-load the CSS files every time, but when I was using esp-link it seemed like it bootstrapped those once and didn't require a reload every time. I might need to mess with the cache-control some but I try to avoid it since I want changes to appear when I'm trying out new features.

Thanks again!