Search found 137 matches

by boarchuz
Sat Jul 20, 2019 10:35 am
Forum: ESP32 Arduino
Topic: ULP wakes ESP32
Replies: 4
Views: 674

Re: ULP wakes ESP32

It's definitely possible. If you look at the datasheet, especially the c reference driver, its data output is very simple and will be easy to bitbang. Of course writing the ULP program is still going to be a bit of work. I got halfway through writing a library to make this stuff easier but haven't w...
by boarchuz
Fri Jul 19, 2019 2:33 am
Forum: ESP32 Arduino
Topic: Possible Bug in WiFi library
Replies: 1
Views: 427

Re: Possible Bug in WiFi library

The AP interface needs to have started before configuring it. To test if this is the problem, add a delay after mode(WIFI_AP). A better solution will be to call config() on the WIFI_EVENT_AP_START event.
by boarchuz
Fri Jul 12, 2019 2:04 am
Forum: ESP32 Arduino
Topic: Measuring power consumption
Replies: 5
Views: 1043

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: 249

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: 566

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: 289

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: 408

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: 580

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: 418

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: 484

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);

Go to advanced search