Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Victor Tseng
@Palatis
tar is good for streaming, you just read it chunk by chunk from a web source
don't have to download the full tarball to the spiffs before you can untar it.
Martin Ayotte
@martinayotte
Of course, uncompressed tarball can be handled on the fly and files stores directly into SPIFFS.
@me-no-dev , I've received my Wemos D1 Mini Pro 16MB, can you elaborate on the status of 16MB esp8266/Arduino#2351
Steve Nelson
@zenmanenergy
martin that sounds ideal
Angus Gratton
@projectgus
you might want to look into miniz https://code.google.com/archive/p/miniz/
Michael Miller
@Makuna
I know Serial can be swapped to other pins; but can then Serial1 be swapped and used for debug output through the IDE Serial monitor?
I tried just Serial.swap() which works for moving to other pins; but I cant get Serial1 to show through the serial monitor.
Victor Tseng
@Palatis
isn't the debug output always use serial0?
you can swap the pins, but it's still UART0
Michael Miller
@Makuna
but the serial monitor is just connected to the pins; so it would seem that if the pins are swapped, then Serial1 should show up in the serial monitor.
Michael Miller
@Makuna

I found this...

 * UART 0 possible options are (1, 3), (2, 3) or (15, 13)
     * UART 1 allows only TX on 2 if UART 0 is not (2, 3)

So, Serial1 can't be placed onto the original TX pin 1; so it can't be used for the Serial monitor with a dev board.

Me No Dev
@me-no-dev
@martinayotte you need to handle the space above 4MB yourself in the sketch. The bootloader does not understand flash above 4MB
we are talking about ESP8266 right?
Martin Ayotte
@martinayotte
@me-no-dev , Yes, ESP8266 ! So, do you mean the changes done in esp8266/Arduino#2351 are useless ?
Me No Dev
@me-no-dev
@martinayotte yes pretty much
Subramanya Chakravarthy
@chakrihacker
hi
can anyone help me
I want to use esp8266 as master and arduino mega as slave
?
?
Michael Miller
@Makuna
@chakrihacker what do you mean by master and slave? In what context are you using these terms. WiFi? Serial?
Martin Ayotte
@martinayotte
@me-no-dev , I think there is a workaround for getting SPIFFS using > 4MB, take a look at this http://www.packom.org/esp8266/16mb/flash/eeprom/2016/10/14/esp8266-16mbyte-flash_handling.html and http://bbs.espressif.com/viewtopic.php?f=7&t=2865. Maybe we can hack the Esp.flashWrite() and Esp.flashRead() to use this method, and then SPIFFS should work. Right ?
Martin Ayotte
@martinayotte
I've just done a quick try, without changing the core files, directly in my sketch, I've done the hack around my SPIFFS Format function, and it worked where it failed before. I will have to generalize the thing inside the core files to test the whole thing.
kiralikbeyin
@kiralikbeyin

Any idea why i get this ?

Panic /Users/eva/Documents/Arduino/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/include/DataSource.h:72 const uint8_t* BufferedStreamDataSource<TStream>::get_buffer(size_t) [with TStream = Stream; uint8_t = unsigned char; size_t = unsigned int]

alancinacio
@alancinacio
@igrr You implemented verifyCertChain back in August. Can you give me an example of how to use it?
kiralikbeyin
@kiralikbeyin

Someone please help! Same sketch same files and any of my v2, v3 and wemos are not joining to a router also cant connect with my mac or iPhone to esp in AP mode. Last 12 hours passed with this problem. I also restored all my data back to sunday. (Everything was working very well on sunday)
Always join and leave
rm 1
add 1
aid 1

@igrr @me-no-dev @Links2004 @gmag11

Germán Martín
@gmag11
@kiralikbeyin No idea, sorry
Michael Miller
@Makuna
@kiralikbeyin something that caught me was that a call is now required to set a property. Look at closed issues and you will find mine with the details.
kiralikbeyin
@kiralikbeyin
@Makuna thank you. I restored all my data to wednesday and seems ok. Additional info : Yesterday I tried to use udp and mdns libs together and everything including all sketches fucked.
Rahul-b62
@Rahul-b62
Hi Folks, I am using ESP-12E module as a server and Android based client apps are allowed to connect. The client number has max/upper limit of 5. Can it be increased, how should I approach this ?
Rahul-b62
@Rahul-b62
any thoughts???
Mehrdad K
@mkeyno
@Rahul-b62 if you intend to process more client request , I suggest use async server
kiralikbeyin
@kiralikbeyin
@Rahul-b62 there is a max client define in lib
Rahul-b62
@Rahul-b62
@kiralikbeyin are talking about MAX_SOCK_NUM from wl_definitions.h file ?
sasitha wathmal
@wathmal
hi everyone,
can anyone help me with compiling Arduino ESP8266 skecth with command line, without using the IDE GUI ?
Clemens Kirchgatterer
@everslick
there is a makefile for arduino esp8266 sketches
there is also my own modified version of that in my genesys repo
Mehrdad K
@mkeyno
@everslick is there a way or function to find last sector of written files in SPIFF
I'm trying to use free sectors is SPIFF
Clemens Kirchgatterer
@everslick
i don't think SPIFFS fills the flash from beginning to end. most likly blocks are written scattered over the whole flash.
Mehrdad K
@mkeyno
for example I've upload my files in SPIFF which is took about 256 sectors and my ESP flash setting set to 4(3m SPIFF), so I should have 256 sector for sketch and 256 sector for uploaded files and must have room after sector 500 , for more safety start writing the flash after sector 600, but surprisingly it corrupts all my files in SPIFF
is there a way to manage SPIFF to upload files as per requested
Clemens Kirchgatterer
@everslick
you can put SPIFFS wherever you want on the flash. but you have to create the FS() object 'by hand'
Mehrdad K
@mkeyno
I remember that yo give me function for such purpose, but I need it change dynamically because may need to add or remove files when sketch running
Clemens Kirchgatterer
@everslick
  FS *fs = NULL;

  size   = (uint32_t)(&_SPIFFS_end) - (uint32_t)(&_SPIFFS_start);
  start  = (uint32_t) &_SPIFFS_start - 0x40200000;
  page   = (uint32_t) &_SPIFFS_page;
  block  = (uint32_t) &_SPIFFS_block;

  fs = new FS(
    fs::FSImplPtr(
      new SPIFFSImpl(start, size, page, block, 5) // 5 = max num open files
    )
  );

  if (fs->begin()) {
    FSInfo info;

    fs->info(info);

    log_print(F("FS:   SPIFFS mounted (total=%s, used=%s)\r\n"),
      fs_format_bytes(info.totalBytes).c_str(),
      fs_format_bytes(info.usedBytes).c_str()
    );

    return (true);
  }
you can set size and start to whatever you want
when you change the size or location of SPIFFS, you will lose all data on it of course.
i'm not positive i understand what you are trying to accomplish.
Mehrdad K
@mkeyno
thanks @everslick , I think I should handle my problem with larger 16MB ESP module