Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Me No Dev
@me-no-dev
it was expected :)
Clemens Kirchgatterer
@everslick
the progress log (in my code) is borked, but this will be easily fixable.
reloading different pages is now faster and more stable, i'm quite happy
Me No Dev
@me-no-dev
btw I do not know if you know, but there is an Async MQTT imlementation now based on AsyncTCP
Clemens Kirchgatterer
@everslick
no, i didn't
Me No Dev
@me-no-dev
the drawback is not supporting HTTPS yet
Clemens Kirchgatterer
@everslick
TLS
i guess
Me No Dev
@me-no-dev
but it has been tested with millions of messages to no fail
yes
Clemens Kirchgatterer
@everslick
sounds great
Clemens Kirchgatterer
@everslick
i will need TLS though, (even though i don't have it now)
is TLS planned?
click
Me No Dev
@me-no-dev
yes, as soon as I find implementable
axtls does not work with async
Clemens Kirchgatterer
@everslick
IC
Clemens Kirchgatterer
@everslick
@me-no-dev : anyway, thank you very much. can you pls announce here, if the asyncUpdater gets merged?
Me No Dev
@me-no-dev
sure thing, I'll post PR in a bit
Clemens Kirchgatterer
@everslick
i will pospone my push until it is at least in master
after more testing i have to say async works so much better, it really should be the default!
Me No Dev
@me-no-dev
it is better, but it's not as easy as the regular one :) there are many things that you can not do inside async callbacks that users can do in the callbacks of the included server
Me No Dev
@me-no-dev
esp8266/Arduino#2096 is the PR, it adds Updater.runAsync(true/false); to switch the modes
Me No Dev
@me-no-dev
@everslick merged into master ;)
@igrr thanks :)
Ivan Grokhotkov
@igrr
Yeah, making async the default approach is the plan, but it requires some work... we need to make shooting oneself in a foot more complicated. After all, Arduino is about ease of use.
Right now i have a working port of asio, which is the candidate for networking API to be incorporated into C++ STL. It almost fits the bill, but unfortunately its dependence on STL brings some problems.
For example, it would be nice if it took Arduino strings, but of course it takes STL strings instead...
Me No Dev
@me-no-dev
seems pretty easy to use
are you planning to ditch lwip all together?
Clemens Kirchgatterer
@everslick
so i have to call Update.runAsync() after Update.begin(). COOL!
thx guys!
works as advertised! :)
Clemens Kirchgatterer
@everslick
i can now push the hardware really hard, i.e. pressing reload on a page that immediately opens a websocket back from the browser as fast as i can. i can trigger an out of memory condition after ~20 reloads and even then it seldomly crashes. before that, it would reboot after 3 reloads at max.
Martin Ayotte
@martinayotte
About my NYTimes tests, I'm still pulling my hairs with WTDs, I think will wait the dusts coming down, especially that @vicnevicne got it working on his side.
Ivan Grokhotkov
@igrr
@me-no-dev it's not a replacement for LwIP (which is a TCP/IP stack), it's an API wrapper around sockets, readv, writev, and select.
so no, not ditching LwIP
Me No Dev
@me-no-dev
@igrr maybe I missread something :) it looked like full-on stack
Ivan Grokhotkov
@igrr
Created esp8266/Arduino#2099 to add information on core version (release and git version) into the compiled binary. Would be awesome if someone with Windows skills can come up with a version which works on Windows
FWeinb
@FWeinb
Is there a why to sign updates with a private key and verify it before updating the firmware using HTTPUpdateServer?
Me No Dev
@me-no-dev
you can add authentication to the upload routine
HTTPUpdateServer was just an example that was turned into lib, the code is not much, so you can take it out and use it in your sketch
FWeinb
@FWeinb
Thanks. I think that it would help improve general security using automated firmware updates if such a verification was present in the core library.
Me No Dev
@me-no-dev
the _server->sendHeader lines are not needed anymore also
Ivan Grokhotkov
@igrr
@FWeinb there was a feature request issue for update signature/verification, but i can't find it in the tracker...
We can do it based on x509 certificates, would be good to export that part of SSL library into something reusable.
FWeinb
@FWeinb
That sounds great.
@igrr I found this thread in the issue tracker: https://github.com/esp8266/Arduino/pull/883#issuecomment-149470141