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 ...
Search found 9 matches
- Wed May 11, 2022 6:38 pm
- Forum: ESP-IDF
- Topic: How to use esp_netif_dhcpc_option?
- Replies: 5
- Views: 8537
- Tue May 10, 2022 5:00 pm
- Forum: ESP-IDF
- Topic: How to use esp_netif_dhcpc_option?
- Replies: 5
- Views: 8537
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 ...
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 ...
- Wed Apr 27, 2022 8:25 pm
- Forum: ESP-IDF
- Topic: Support for captive portal using https or TSL query?
- Replies: 1
- Views: 2483
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 ...
- Fri Mar 18, 2022 12:52 am
- Forum: General Discussion
- Topic: ESP32 interrupt not waking device after low battery
- Replies: 5
- Views: 4481
Re: ESP32 interrupt not waking device after low battery
Thanks for the link! On what pin does the reset pulse need to come in?
- Thu Mar 17, 2022 9:12 pm
- Forum: General Discussion
- Topic: ESP32 interrupt not waking device after low battery
- Replies: 5
- Views: 4481
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:
Here is the current design:
- Wed Mar 16, 2022 10:16 pm
- Forum: General Discussion
- Topic: ESP32 interrupt not waking device after low battery
- Replies: 5
- Views: 4481
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 ...
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 ...
- 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: 3304
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.
- 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: 3304
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 ...
- 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: 13700
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.