Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 22:58
    d-a-v synchronize #6813
  • 22:43
    d-a-v opened #6813
  • 22:12
    jbrepogmailcom closed #6752
  • 21:47
    d-a-v opened #6812
  • 21:38
    earlephilhower synchronize #6294
  • 20:05
    devyte synchronize #6784
  • 20:05
    devyte milestoned #6725
  • 20:05
    devyte demilestoned #6725
  • 19:28
    devyte labeled #6752
  • 19:19
    devyte assigned #6810
  • 19:17
    devyte labeled #6808
  • 19:17
    devyte labeled #6808
  • 19:16
  • 19:16
    devyte synchronize #6725
  • 19:16

    devyte on master

    Add callbacks for ESP8266HTTPUp… (compare)

  • 19:15
    devyte closed #6796
  • 17:47
    devyte synchronize #6796
  • 17:46

    devyte on master

    Add const char* content to ESP8… (compare)

  • 17:46
    devyte closed #6797
Ikbel
@ikbelkirasan
btw it's not a real eeprom. everything is on the flash. ESP uses an eeprom emulation.
yes exactly
Tejas H
@CodingCreate101

btw it's not a real eeprom. everything is on the flash.

Yeah, this is why I had that doubt. Thank you guys. :)

Ikbel
@ikbelkirasan
Happy to help :)
Tejas H
@CodingCreate101
:sparkles:
enriquecml
@enriquecml
how much limit size of EEPROM, ESP 8226 with 4MB?
maybe 3MB offset ?¿ without spiff,and swap memory for OTA updates...
ok are 4096 bytes
for design
Tejas H
@CodingCreate101
Hello
For Rtc.SetDateTime(compiled);
what's the datatype of compiled? Is it timestamp?
enriquecml
@enriquecml
where saw this method for RTC?
RTC class on esp8226 (write/read)
mainly
ESP.rtcUserMemoryWrite(offset, &data, sizeof(data)) and ESP.rtcUserMemoryRead(offset, &data, sizeof(data)) allow data to be stored in and retrieved from the RTC user memory of the chip respectively. Total size of RTC user memory is 512 bytes, so offset + sizeof(data) shouldn’t exceed 512. Data should be 4-byte aligned. The stored data can be retained between deep sleep cycles. However, the data might be lost after power cycling the chip.
but you refer RTC module
extern
enriquecml
@enriquecml
compiled is intance of class
@CodingCreate101 // RtcDateTime compileDateTime(DATE, TIME);
RtcDateTime(const char date, const char time);
Tejas H
@CodingCreate101
Ohhh right.. how could I miss such obvious thing
enriquecml
@enriquecml
hehe
Tejas H
@CodingCreate101
Thank you
enriquecml
@enriquecml
pair programming ?
haha
probonopd
@probonopd
hi all, is there a way to make server.onFileUpload upload to a fixed filename (instead of using what the client sends)?
  server.onFileUpload([](AsyncWebServerRequest * request, const String & filename, size_t index, uint8_t *data, size_t len, bool final) {
    if(!index){
      // filename="cache.gco" ; // Override what the client sent as the filename - DOES NOT WORK
    }
  });
I am using ESPAsyncWebServer by @me-no-dev
Victor Tseng
@Palatis
well that filename is the client tells you what file it sends
you get to decide where to store it.
for example user sends you C:\Users\Palatis\blah.jpg
and you can't modify it because it's a const String &.
probonopd
@probonopd
i know that the client sends it, but I want to override what the client sends
and if i leave away the "const" then it doesn't compile
Victor Tseng
@Palatis
you can't, that desicision is on the client.
probonopd
@probonopd
well, the client sends a name but the server can certainly ignore what the client sends
or wait, could i move the file after it is uploaded?
Victor Tseng
@Palatis
that filename is the filename from the client side
the file isn't saved anywhere
it's still in ram
read from data
probonopd
@probonopd
the file is saved to spiffs
in a file with a name
and i want to override that name of the file on spiffs
Martin Ayotte
@martinayotte
Simply not use the "filename" variable and provide another filename to SPIFFS calls.
Victor Tseng
@Palatis
i guess not
i mean, the file isn't saved directly to SPIFFS.
at least not what's written in lib code.