Search found 44 matches

by mgleason_3
Sun Jul 23, 2017 3:53 am
Forum: General Discussion
Topic: How to keep Wifi from timing out / multiple Curl calls example / wifi: pm start, type:0
Replies: 2
Views: 2612

How to keep Wifi from timing out / multiple Curl calls example / wifi: pm start, type:0

I'm trying to use curl to make a restful request every minute or so ( though for testing I've calling every 5 seconds). The issue I'm running into is that everything works fine until this pops up: I (12667) wifi: pm start, type:0 Once that message hits, the calls timeout even though the wifi shows c...
by mgleason_3
Mon Jul 17, 2017 10:34 pm
Forum: ESP-IDF
Topic: [Solved] Meaning of reason codes in system_event_sta_disconnected_t?
Replies: 7
Views: 8665

Re: [Solved] Meaning of reason codes in system_event_sta_disconnected_t?

@ESP_igrr
>>Will update event structure to use this enum

Did you get a chance to do this? It looks like it's still an unnamed enum that can't be accessed.
by mgleason_3
Wed Jun 14, 2017 4:46 am
Forum: General Discussion
Topic: Crash running https_request example
Replies: 19
Views: 11019

Re: Crash running https_request example

So, there's really two different issues. Continued
  1. Here: https://github.com/espressif/esp-idf/issues/698
    and
  2. Here: https://github.com/espressif/esp-idf/issues/630
by mgleason_3
Tue Jun 13, 2017 4:53 am
Forum: General Discussion
Topic: Crash running https_request example
Replies: 19
Views: 11019

Re: Crash running https_request example

After a few more tests, "https_get_task" has hung in as little as 1Minute:30sec. The last hung at 7:45. The test is still running to see of it ever comes back (app_main is still printing the time every 100ms). "Enable mbedTLS debugging" is turned on. It turns out that the read_timeout (AKA read/recv...
by mgleason_3
Tue Jun 13, 2017 3:04 am
Forum: General Discussion
Topic: Crash running https_request example
Replies: 19
Views: 11019

Re: Crash running https_request example

Thanks again. A couple things: Received the new ESP32 - in this case a NodeMCU Dev Kit. Tested with the original (unpinned) demo and it still crashes. So, pretty sure it has nothing to do with brownouts / power issues. Pretty sure it's a bug in the demo code pure and simple. It wouldn't have taken a...
by mgleason_3
Mon Jun 12, 2017 11:43 pm
Forum: General Discussion
Topic: Crash running https_request example
Replies: 19
Views: 11019

Re: Crash running https_request example

@kolban Thanks - looks like it's "not intended for normal application runtime use but as a debug aid" - so probably better to focus on why it's hanging. Any thoughts on the best way to debug why "https_get_task" hangs at random times? So far it's been after 30-40 minutes (31 Minutes, 49 Secs yesterd...
by mgleason_3
Mon Jun 12, 2017 6:40 pm
Forum: General Discussion
Topic: Crash running https_request example
Replies: 19
Views: 11019

Re: Crash running https_request example

Conversely (to killing tasks)

- Is there a way to monitor tasks and possibly be notified if they die so they can be restarted?
by mgleason_3
Mon Jun 12, 2017 6:36 pm
Forum: General Discussion
Topic: Crash running https_request example
Replies: 19
Views: 11019

Re: Crash running https_request example

@f.h-f.s. - Credit - your suggestion worked!
by mgleason_3
Mon Jun 12, 2017 6:55 am
Forum: General Discussion
Topic: Crash running https_request example
Replies: 19
Views: 11019

Re: Crash running https_request example

Changed a couple things: Modified app_main to Pin "https_get_task" to CPU1 (see below) Added a printf to print the available heap before each "Starting again!" Did a "make erase_flash" - then "make flash" and "make monitor" And, it runs without crashing - no "Guru Meditation Error"s, no reboots! ......
by mgleason_3
Mon Jun 12, 2017 2:56 am
Forum: General Discussion
Topic: Crash running https_request example
Replies: 19
Views: 11019

Re: Crash running https_request example

@ESP_igrr >> Based on the varying crash cause, this looks very much like a brownout... unfortunately brownout detector support hasn't been merged yet, so hard to tell for sure. >>Do you have a different USB cable to try? It doesn't happen very often, but I remember there were a few reports of browno...

Go to advanced search