Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Victor Aprea
@vicatcu
the rst cause: 2 is strange because there is no activity on the reset line either
it is pegged high
how about the flash_id... is that actually reading it out of from spi flash, or is that in memory somewhere
Victor Aprea
@vicatcu
@igrr i have a feeling we're just going to call it an unsolved ESD mystery and move on... hehe
Ivan Grokhotkov
@igrr
might be the right thing to do, in terms of time spent :)
Daniel Tullemans
@tullo-x86
Hi all, is this an appropriate place to ask questions about usage? I'm trying to figure out if the Arduino <SPI.h> header is what I need to use to get SPI output working.
Victor Aprea
@vicatcu
yea i only care if it's a thing that happens more than once
@igrr what country are you in btw?
Ivan Grokhotkov
@igrr
Russia, Saint-Petersburg
Victor Aprea
@vicatcu
that's what i thought, you're a night owl :)
xbary
@xbary
i from Poland :)
Victor Aprea
@vicatcu
i'm in upstate new york
lol
@igrr well let me just say you are doing great with this project
and thank you
i'm still curious what the 6 means in boot mode: (3,6) if anyone knows
but I need to get going, gotta lock the chickens in and let the dog out :)
xbary
@xbary
Arduino project is a brilliant thing esp8266
Victor Aprea
@vicatcu
cheers all, talk later
xbary
@xbary
dobranoc
Ivan Grokhotkov
@igrr
added a draft of RequestHandler interface for ESP8266WebServer
makes handlers a bit more powerful, passing full URI and request method
Steve Nelson
@zenmanenergy
Do HTTP redirects work with the server.send() method? Anyone know the syntax?
Ivan Grokhotkov
@igrr
@zenmanenergy this seems to work:
  server.on("/a", []() {
    String redirectUrl = "http://";
    redirectUrl += WiFi.localIP().toString();
    redirectUrl += "/about";

    server.sendHeader("Location", redirectUrl);
    server.send(301, "text/plain", "");
  });
redirects /a to /about
Steve Nelson
@zenmanenergy
sweetness. thanks
xbary
@xbary
@igrr After the latest amendments, for me everything works. a RAM average increased space of 10-15%, and 30% flash :)
Ivan Grokhotkov
@igrr
cool, thanks for testing
For those who were interested in gdb stub, i packed it into a library
xbary
@xbary
and Windows also GDBdebuger From there?
Martin Ayotte
@martinayotte
@igrr, Wow ! Thanks a lot !
Ivan Grokhotkov
@igrr
haven't tried this on windows. xtensa gdb should come along with the toolchain which is installed with the IDE.
note that with current toolchain build stack frames are a bit off...
i'm using a locally-built toolchain which is more up to date, it seems to improve things.
also it helps to change -Os to -Og -g3 in platform.txt (c and cpp flags)
but such change can not be wrapped into a library...
Steve Nelson
@zenmanenergy
I have commented out my WiFi.begin() statement, but when I reboot my ESP, it auto connects to the last SSID. I don’t see method in the docs on github or on arduino.cc to turn the auto connecting on/off.
Markus
@Links2004
WiFi.disconnect(); will delete the stored config
Luc
@luc-github
Hi is there a way to know the capacity of SPIFFS and the current available size or occupation ?
In previous API there are such functions:
// DBG_OUTPUT_PORT.printf("\n==== SPIFFS Info ====\n"); // DBG_OUTPUT_PORT.printf("FS Mount: %d\n", FS.mount()); // DBG_OUTPUT_PORT.printf("FS Size: %s\n", formatBytes(FS.size())); // DBG_OUTPUT_PORT.printf("FS Bytes: total: %s, used: %s\n", formatBytes(FS.totalBytes()), formatBytes(FS.usedBytes())); // DBG_OUTPUT_PORT.printf("FS Blocks: total: %d, free: %d, size: %s\n", FS.totalBlocks(), FS.freeBlocks(), formatBytes(FS.blockSize())); // DBG_OUTPUT_PORT.printf("FS Pages: allocated: %d, deleted: %d, size: %s\n", FS.allocatedPages(), FS.deletedPages(), formatBytes(FS.pageSize()));
but cannot find in new SPIFFS
Thanks
Ivan Grokhotkov
@igrr
esp8266/Arduino#779
not yet...
Luc
@luc-github
Ok - thanks - just wondering
Steve Nelson
@zenmanenergy
this is a crazy open ended question… but has anyone experienced WiFiClient not connecting to a server with one internet connection, but then have it work with another connection? Any idea how I could debug this?
Martin Ayotte
@martinayotte
What do you mean exactly ? Can you describe the scenario ?
Steve Nelson
@zenmanenergy
i’m in a coffee shop (i hacked into their router…guessed the password hehe, so I have access to their dd-wrt) anyway… if i connect my esp to their connection, it connects, gives me a local IP but if i do this: WiFiClient client;
const int httpPort = 80;
if (!client.connect(host, httpPort)) {
Serial.println("connection failed");
return;
}
it fails.
if… i change my connection to my phone, the same code works.