Search found 95 matches

by boarchuz
Fri Jul 12, 2019 2:04 am
Forum: ESP32 Arduino
Topic: Measuring power consumption
Replies: 5
Views: 247

Re: Measuring power consumption

What is the actual voltage on the battery, under load?
by boarchuz
Thu Jul 04, 2019 12:15 am
Forum: ESP32 IDF
Topic: reconnect from Deep Sleep to AP
Replies: 2
Views: 90

Re: reconnect from Deep Sleep to AP

It hasn't been mentioned much for some reason but the recent IDF update has significantly improved connection speeds. It was consistently taking 1100-1300ms to connect to my home WPA2 network a couple weeks ago, but in testing this week I'm consistently getting about 500ms now (often ~400ms). I have...
by boarchuz
Wed Jul 03, 2019 10:09 am
Forum: General Discussion
Topic: [SOLVED] How to download files from browser using AsyncWebServer ?
Replies: 3
Views: 196

Re: Is there a way of making a file and then download it using a web-server and a browser without touching the file-syst

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition I think you're using AsyncWebServer so your handler might look something like this: AsyncWebServerResponse *response = request->beginResponse(200, "text/plain", "My file contents"); response->addHeader("Content-Disposition...
by boarchuz
Tue Jul 02, 2019 1:27 pm
Forum: General Discussion
Topic: [SOLVED] Wrong Magic Byte error when trying to upload spiffs.bin
Replies: 2
Views: 121

Re: Wrong Magic Byte error when trying to upload spiffs.bin

Isn't this line wrong? For "spiffs.bin", indexOf("spiffs")==0 so it won't be detected as U_SPIFFS type.

Code: Select all

int cmd = (filename.indexOf("spiffs") > 0) ? U_SPIFFS : U_FLASH;
Try

Code: Select all

int cmd = (filename.indexOf("spiffs") > -1) ? U_SPIFFS : U_FLASH;
by boarchuz
Thu Jun 27, 2019 8:43 pm
Forum: ESP32 Arduino
Topic: RTC_DATA_ATTR shows strange offset
Replies: 2
Views: 154

Re: RTC_DATA_ATTR shows strange offset

Arduino is pre-compiled with CONFIG_ULP_COPROC_RESERVE_MEM = 512, meaning that 512 bytes (ie. 128 words) are reserved from 0x50000000 for a ULP program, and anything with the RTC_DATA_ATTR attribute comes just after that (ie. 0x50000200, as you noticed). There is 8K of RTC slow memory available in t...
by boarchuz
Wed Jun 26, 2019 6:05 pm
Forum: ESP32 Arduino
Topic: Trouble with multiple millis() timers
Replies: 4
Views: 256

Re: Trouble with multiple millis() timers

I wrote a similar comment yesterday but you deleted the post! I see you fixed a couple things (not what mike rightly pointed out though). I think most of this is still relevant: The "one" "two" "three" variables are really confusing and difficult to follow. I think you might even be confusing yourse...
by boarchuz
Fri Jun 21, 2019 11:44 am
Forum: Report Bugs
Topic: Can not start ULP after DEEPSLEEP_RESET
Replies: 2
Views: 180

Re: Can not start ULP after DEEPSLEEP_RESET

To be clear, is your ULP program ending immediately after it reports the power supply down state? Or does it continue to run while in deep sleep? Are you confident that the problem is that the ULP program isn't running, or is it possible that it's running but there is some other problem (eg. pin not...
by boarchuz
Thu Jun 20, 2019 5:57 pm
Forum: ESP32 Arduino
Topic: Modify the IP address in WiFi_AP mode
Replies: 3
Views: 183

Re: Modify the IP address in WiFi_AP mode

Code: Select all

IPAddress IP = (10, 10, 1, 1);
->

Code: Select all

IPAddress IP = IPAddress(10, 10, 1, 1);
by boarchuz
Thu Jun 20, 2019 5:50 pm
Forum: ESP32 Arduino
Topic: How to use: esp_wifi_get_country(wifi_country_t *country)
Replies: 2
Views: 210

Re: How to use: esp_wifi_get_country(wifi_country_t *country)

Try something like this.

Code: Select all

wifi_country_t myCountry;
if(esp_wifi_get_country(&myCountry) == ESP_OK){
  Serial.print("Country Code: ");
  Serial.println(myCountry.cc);
 }
by boarchuz
Sun Jun 16, 2019 11:47 am
Forum: Hardware
Topic: Recommend a voltage regulator/buck converter for ESP32 project
Replies: 3
Views: 331

Re: Recommend a voltage regulator/buck converter for ESP32 project

Why would you go for a 6210 over the 6220? I think it's perfect for ESP32: up to 1 amp in high power mode, and seamlessly switches to Green Operation mode (nominal 8uA but even less than that in my real world experience) when load current drops to less than 1mA (ie. deep sleep). Also slightly better...

Go to advanced search