-->
Page 5 of 60

Re: esp-link - serial bridge to uController with OTA update

PostPosted: Sun Jun 21, 2015 5:31 pm
by tve
Out of curiosity, can you elaborate why you want to use the web UI to reflash stuff? I find that having 'make' do it is so much easier. Maybe that's because I live in the command line... Hearing your use-cases would be interesting.

To reflash the attached uC, does 'nc' or avrdude not work for you? Why a POST be easier?

The idea of combining the two parts into one file is a good one. I'll think about that, shouldn't be hard to do.

Re: esp-link - serial bridge to uController with OTA update

PostPosted: Sun Jun 21, 2015 7:00 pm
by kriegste
That's easy to explain: I have friends who are interested in some of the projects. But they won't install Linux just for a tiny software update. ;)

Re: esp-link - serial bridge to uController with OTA update

PostPosted: Sun Jun 21, 2015 9:36 pm
by tve
Mhh, to reflash the esp-link itself it should be pretty easy to cook up some javascript/ajax stuff to issue the existing POST request. I'd have to look into how that works.
To reprogram the attached uC some cgi handler work would be necessary.

Re: esp-link - serial bridge to uController with OTA update

PostPosted: Mon Jun 22, 2015 2:05 pm
by kriegste
I still have a few problems with the ajaxLog and I don't think these are caused by my modifications.

The first is:
On my Android phone (Dolphin browser) /log/text gets cached. This is no problem until I restart the module, because only then /log/text?start=0 gets loaded from the cache.

A clean solution may be a no-cache header?