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's about the same, with the difference that you do not get separate callbacks for start and end
that decision is based on the index and final arguments
and you always get data
Clemens Kirchgatterer
@everslick
ic
so i have to add the reboot after update and the server response to the if (final) ... as well now it is still in the handle_update_finished_cb()
Me No Dev
@me-no-dev
you can leave it there
you will get the POST callback after the upload
have to go :)
Clemens Kirchgatterer
@everslick
thx
Rohit Yermalkar
@romuye123
when you run WiFi.begin("mywifi_ssid","mywifi_pass");
this will store the ssid and password to flash
how to reset or delete ssid and password ?
Martin Ayotte
@martinayotte
@me-no-dev , @igrr , remember my sketch for NYTimes ? replacing the tcpclient.write(content) by spiffs.write(content), I now see some Soft WTD :-( Doing only spiffs.write(String("chunksize=") + chunksize) instead of real content and it works until complete NYTimes download
Me No Dev
@me-no-dev
@martinayotte how big is the chunk size?
Martin Ayotte
@martinayotte
@me-no-dev , 1460 bytes.
I've also tried with 1024
Martin Ayotte
@martinayotte
Martin Ayotte
@martinayotte
Oh ! Something I didn't check : the issue is when used within my bigger Sketch-Buffet, but no with the stripped down version on Gist. So, maybe I'm facing some memory issue ... :-(
Euuh ! not true, I got it with the stripped down version, but it is more intermittent : https://gist.github.com/martinayotte/965452b92299eb2ff681c5a65736bdc9
Martin Ayotte
@martinayotte
Ouch ! after mergin with latest github, probably unrelated, I got one crash with this time different stacktrace but related to umm_malloc too : https://gist.github.com/martinayotte/2d3d9a1517b34f5ece9ea335539e6524
Martin Ayotte
@martinayotte
... and SPIFFS write doesn't seem to write NYTimes content at all now, only some nulls characters ... I should have done backup, but I didn't ... :-(
Martin Ayotte
@martinayotte
maybe not exact ... too much headaches ! I will go take a walk to refresh myself ...
Germán Martín
@gmag11
Hi, I'm developing a Firmata client for ESP. I'd like to do stream.available() checking inside class by using a ticker. But I do not know how to assign a member function as callback of ticket. Could you give me some indications?
Me No Dev
@me-no-dev
@martinayotte I know those moments :) nothing a good night sleep can't put in order
Clemens Kirchgatterer
@everslick
so, the migration to async webserver is done, but the OTA update stack-dumps on me. :-(
clemens@secrets:~/Devel/ESP8266/genesys$ make stack
0x402010cf: __wrap_realloc at ??:?
0x40104c5c: lmacTxFrame at ??:?
0x4020ffcc: yield at ??:?
0x4020f76d: UpdaterClass::_writeBuffer() at ??:?
0x4020f81f: UpdaterClass::write(unsigned char*, unsigned int) at ??:?
0x402102da: String::String(char const*) at ??:?
0x4020de24: handle_update_progress_cb(AsyncWebServerRequest*, String, unsigned int, unsigned char*, unsigned int, bool) at http.cpp:?
This message was deleted
UpdaterClass::_writeBuffer() calls yield(). Isn't that forbidden in AsyncTCP ?
You can not use yield or delay or any function that uses them inside the callbacks
@me-no-dev looks pretty dim. :-(
Me No Dev
@me-no-dev
yes, let me look at the updater
I know some folks got it to run async
can you try commenting out the yield calls in write and _writeBuffer
Me No Dev
@me-no-dev
if that works, I'll PR a writeAsync method to the Updater
Clemens Kirchgatterer
@everslick
ok, i test it
it uploads the file, then reboots, but does not start anymore
Me No Dev
@me-no-dev
that should not be connected
Clemens Kirchgatterer
@everslick
either the update is not finished correctly (but on my side) or the update does not work correctly anymore
Me No Dev
@me-no-dev
if the updater said it's good, then it should by all means work
debug enabled on Updater?
Clemens Kirchgatterer
@everslick
no not anabled
trying that
skrew that, it worked, it just booted into bootloader
Me No Dev
@me-no-dev
btw, you did restart manually after Serial upload right?
Clemens Kirchgatterer
@everslick
hehe, exactly
everything is fine
i tried 5 times now, and it worked every single time
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.