Search found 9 matches

by ldudel
Wed May 11, 2022 6:38 pm
Forum: ESP-IDF
Topic: How to use esp_netif_dhcpc_option?
Replies: 5
Views: 6252

Re: How to use esp_netif_dhcpc_option?

Thanks, I'm with you thus far. But how can I know what the pointer is supposed to point to? Here are all the valid options: typedef enum{ ESP_NETIF_SUBNET_MASK = 1, /**< Network mask */ ESP_NETIF_DOMAIN_NAME_SERVER = 6, /**< Domain name server */ ESP_NETIF_ROUTER_SOLICITATION_ADDRESS = 32, /**< Soli...
by ldudel
Tue May 10, 2022 5:00 pm
Forum: ESP-IDF
Topic: How to use esp_netif_dhcpc_option?
Replies: 5
Views: 6252

How to use esp_netif_dhcpc_option?

I'm trying to fix several issues related to DHCP, and I'm really struggling with the scarce documentation. Does anyone know where to find documentation for this function? The opt_val parameter is critical, but I can't find any documentation for it. esp_err_t esp_netif_dhcpc_option(esp_netif_t *esp_n...
by ldudel
Wed Apr 27, 2022 8:25 pm
Forum: ESP-IDF
Topic: Support for captive portal using https or TSL query?
Replies: 1
Views: 1977

Support for captive portal using https or TSL query?

I'm creating a captive portal to receive the user's home wifi credentials. As recommended, I set up a DNS server that reroutes all requests to my access point. This works fine with iPhone and Windows: both send well-formed UDP packages. However, the ESP doesn't receive any UDP information from the A...
by ldudel
Fri Mar 18, 2022 12:52 am
Forum: General Discussion
Topic: ESP32 interrupt not waking device after low battery
Replies: 5
Views: 3676

Re: ESP32 interrupt not waking device after low battery

Thanks for the link! On what pin does the reset pulse need to come in?
by ldudel
Thu Mar 17, 2022 9:12 pm
Forum: General Discussion
Topic: ESP32 interrupt not waking device after low battery
Replies: 5
Views: 3676

Re: ESP32 interrupt not waking device after low battery

Thanks for this response. Plugging the USB evidently doesn't generate a strong enough pulse in my design. Is there a reference design for how to make this work?

Here is the current design:
power_circuit.png
power_circuit.png (66.39 KiB) Viewed 3550 times
by ldudel
Wed Mar 16, 2022 10:16 pm
Forum: General Discussion
Topic: ESP32 interrupt not waking device after low battery
Replies: 5
Views: 3676

ESP32 interrupt not waking device after low battery

I'm running power testing on my custom ESP32 PCB. The following code works great when entering sleep: esp_sleep_enable_ext0_wakeup(gpio_num_t(CHARGER_PLUGGED_PIN), HIGH); esp_deep_sleep(sleep_time); The ESP wakes up after sleep_time. If the charger is plugged it wakes up immediately. However, if the...
by ldudel
Mon Nov 15, 2021 6:04 am
Forum: ESP-IDF
Topic: Loading and saving structs to flash every reboot - use nvs, wl, or fat API?
Replies: 3
Views: 2818

Re: Loading and saving structs to flash every reboot - use nvs, wl, or fat API?

Thanks for your answer! Are you sure that nvs_set_blob uses wear leveling? It is really hard to tell from the documentation.
by ldudel
Sun Nov 14, 2021 6:20 pm
Forum: ESP-IDF
Topic: Loading and saving structs to flash every reboot - use nvs, wl, or fat API?
Replies: 3
Views: 2818

Loading and saving structs to flash every reboot - use nvs, wl, or fat API?

I'm loading and saving two structs from/to flash each boot. This will quickly add up to > 10k saves, so I need to implement some kind of wear management. I'm not sure what the best option is. I don't want to add extra power-consuming overhead, so I'm leaning toward lower-level operations. But I'm no...
by ldudel
Thu Jun 24, 2021 11:25 pm
Forum: IDEs for ESP-IDF
Topic: VS Code CMake error: "include called with wrong number of arguments"
Replies: 7
Views: 12618

Re: VS Code CMake error: "include called with wrong number of arguments"

I had this issue and just found a solution: there can't be any spaces in the path to /main. So all directories in the path need to be renamed, or you need to build somewhere else.