Search found 323 matches

by mzimmers
Sun Apr 22, 2018 6:57 pm
Forum: General Discussion
Topic: [solved] troubleshooting a WiFi connection
Replies: 8
Views: 2027

Re: troubleshooting a WiFi connection

printfs (and good programming practices) are my friend. Through copious use of printf telltales, I determined that the problem was some invalid entries in the wifi_config_t struct, caused by my failure to fully initialize the struct before using it. I guess I'd been getting away with it in earlier, ...
by mzimmers
Sun Apr 22, 2018 2:21 am
Forum: General Discussion
Topic: [solved] troubleshooting a WiFi connection
Replies: 8
Views: 2027

Re: troubleshooting a WiFi connection

Well, here's what I got...not sure what to make of it: D (592) event: SYSTEM_EVENT_STA_START V (592) event: enter default callback D (592) tcpip_adapter: check: local, if=0 fn=0x4011ca3c 0x4011ca3c: tcpip_adapter_start_api at C:/esp-idf-v3.0-rc1/components/tcpip_adapter/tcpip_adapter_lwip.c:1065 D (...
by mzimmers
Sat Apr 21, 2018 9:25 pm
Forum: General Discussion
Topic: [solved] troubleshooting a WiFi connection
Replies: 8
Views: 2027

Re: troubleshooting a WiFi connection

Hi Neil - The program that works runs on the same device, connecting to the same AP, as the one that doesn't, so I don't think the AP is the culprit here. (Besides, I already tried restarting it.) Can you tell me more about these "reason codes?" Is this information perhaps contained in the event_inf...
by mzimmers
Sat Apr 21, 2018 2:24 pm
Forum: General Discussion
Topic: [solved] troubleshooting a WiFi connection
Replies: 8
Views: 2027

Re: troubleshooting a WiFi connection

Hi Neil - I didn't turn on verbose logging, but I did put a telltale printf in the event handler. The program that works correctly gets: - SYSTEM_EVENT_STA_START - SYSTEM_EVENT_STA_CONNECTED - SYSTEM_EVENT_STA_GOT_IP The program that doesn't work gets: - SYSTEM_EVENT_STA_START - SYSTEM_EVENT_STA_DIS...
by mzimmers
Fri Apr 20, 2018 10:24 pm
Forum: General Discussion
Topic: [solved] troubleshooting a WiFi connection
Replies: 8
Views: 2027

[solved] troubleshooting a WiFi connection

This falls under the category of "it used to work, but somehow I screwed it up and don't know what I did." In order to get a WiFi client up for multicasts, I borrowed heavily from the example in examples/protocols/udp_multicast. For the unfamiliar, it runs an infinite loop, using lwip_select (a linu...
by mzimmers
Thu Apr 19, 2018 12:13 am
Forum: General Discussion
Topic: What version of FreeRTOS do I have...?
Replies: 2
Views: 736

Re: What version of FreeRTOS do I have...?

Hi ESP_Angus - that's good information, and in fact, a buffer mechanism (hopefully for inter-task communication) is exactly what I was looking for. Thank you for the link(s).
by mzimmers
Wed Apr 18, 2018 10:18 pm
Forum: General Discussion
Topic: What version of FreeRTOS do I have...?
Replies: 2
Views: 736

What version of FreeRTOS do I have...?

...more to the point, how do I check this myself?

I went to use a relatively new FreeRTOS feature only to find that it's not available pre-version 10.0. Doh...
by mzimmers
Mon Apr 16, 2018 9:12 pm
Forum: ESP32 IDF
Topic: (resolved) handling GPIO interrupts
Replies: 18
Views: 4642

Re: handling GPIO interrupts

Hi Neil - I got pulled off on some TDY and just got back to this today. I borrowed from the logic in your example, and came up with this: for (;;) { validPress = true; // innocent until proven guilty if(xQueueReceive(gpio_evt_queue, &io_num, portMAX_DELAY)) { // probably going to want to disable the...
by mzimmers
Wed Apr 04, 2018 9:01 pm
Forum: ESP32 IDF
Topic: (resolved) handling GPIO interrupts
Replies: 18
Views: 4642

Re: handling GPIO interrupts

That's all good information. In reading your answer, I wondered: is it kosher to use a combination of interrupts and polling on the same GPIO pin? In my case, I need to be sure the button is held depressed for at least 250ms. The first way of doing this that came to mind was a loop of say, 25 sample...
by mzimmers
Wed Apr 04, 2018 4:33 pm
Forum: ESP32 IDF
Topic: (resolved) handling GPIO interrupts
Replies: 18
Views: 4642

(resolved) Re: handling GPIO interrupts

Maybe I'm over-complicating this, and I don't need the call to gpio_get_level(). I just thought it made sense to verify the state of the pin after getting an interrupt...is this not common practice? As far as intent...when the button is pressed, I need to send a message (via WiFi) to another device....

Go to advanced search