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
yeah... code looks good
Clemens Kirchgatterer
@everslick
yeah, don't waste your time. next time i see that, i will check it out
this is what get's executed
when you are moving to async, read the server readme ;) has examples for many cases, including large flash strings
we have tested it with over 40K
Clemens Kirchgatterer
@everslick
mayby my flash is borked and there is a byte stuck at '\0' hehehe
Me No Dev
@me-no-dev
you can check the return of html.concat(PSTR)
if true for the large string then it sees it as 0 length
Clemens Kirchgatterer
@everslick
yeah, i've studied the readme, very usful APIs there
no it was not 0, because most of the string was there, just the end of the string was missing
Me No Dev
@me-no-dev
maybe borked then for real
why not output to serial first to check it out?
Clemens Kirchgatterer
@everslick
because that code is now gone (never made it to git) :-P
Me No Dev
@me-no-dev
just on your ESP?
if you have nothing better to do and want to find out wether it's a bug, you can dump the flash and look for the string
Clemens Kirchgatterer
@everslick
i will wait, until it comes back. or i will a do minimal testcase for that anytime later.
but not today, it's 11pm here! :-) i'm off!
CU, and thx for the merge today!
Me No Dev
@me-no-dev
you are not far from me
germany?
Clemens Kirchgatterer
@everslick
austria
Me No Dev
@me-no-dev
nice
Clemens Kirchgatterer
@everslick
summer sucks currently! ;-)
Me No Dev
@me-no-dev
the best looking flight attendants ever
get on a plane :D
Clemens Kirchgatterer
@everslick
hehe. indeed, i had one in my study group (a former stewardess)
top notch!
so, anyway, i have to go
cu
Me No Dev
@me-no-dev
have fun :)
Germán Martín
@gmag11
@sticilface I've done MD5 calculation an checking on web page during upload in my FSBrowser GitHub repository. Have a look and ask any question you need.
sticilface
@sticilface
Will take a look. Is that md5 for uploaded files/spiffs files?
Germán Martín
@gmag11
For uploaded scketch for OTA, but you could use it for hash every file you upload.
sticilface
@sticilface
Ah ok. I've got all that sorted. I'm trying to hash the actual sketch. The running one.
Well I've done it. And it works.
That way u can compare an incoming binary to the running one without having to specify versions and defines, and commit hashes and all sorts that gets complicated.
sticilface
@sticilface
I just need to verify and change on thing. And check this sketch size issue. As the sketch size needs to return the same size as the binary on the computer. Not the aligned one. As the hash function needs this same size.
If that makes sense.
So far from all the sketches I've tested they are either 0,4,8,12 bytes larger than the current getsketchsize()
Me No Dev
@me-no-dev
what is common in the sizes (look at them in hex)
it is surely rounding up the size to some common denominator (like 16 bytes or 0xF)
so if the hex of the incomming size in bytes always ends on 0, the formula above should give you the size you are looking for
pos being equal to getsketchsize()
Ivan Grokhotkov
@igrr
Actually, just rounding the size is not what he needs.
The correct formula is result=(pos+16)&15
Because there is a checksum byte added at the end
Just rounding the sketch size up to 16 bytes will not give a correct result when pos is already 16 bytes aligned, I.e. you need to take checksum byte into account.
P.s. I can send you a sketch which is 16 bytes larger than get sketch size 😉