Search found 169 matches

by davdav
Tue Jun 25, 2019 6:58 am
Forum: General Discussion
Topic: Getting client IP connecting to esp_http_server
Replies: 0
Views: 94

Getting client IP connecting to esp_http_server

Hi everybody, I have started working on esp_http_server and I used "restful_server" example as starting point. So far so good. I would like to know the IP of the client connecting to the esp_http_server (esp32 is NOT in softAP). I see that in "components/esp_http_server/src/httpd_main" the function ...
by davdav
Wed Jun 12, 2019 9:17 am
Forum: General Discussion
Topic: Isolate GPIO (not RTC) during deep-sleep
Replies: 3
Views: 381

Re: Isolate GPIO (not RTC) during deep-sleep

Hi, davdav You do not need to reconfigure the GPIO mode before entering deep-sleep. When `gpio_deep_sleep_hold_en` is called, all digital GPIOs will remain in their current state. But after the chip wakes up from deep sleep and calls `gpio_deep_sleep_hold_dis`, all digital GPIOs will be reset to th...
by davdav
Wed Jun 05, 2019 11:53 am
Forum: General Discussion
Topic: Isolate GPIO (not RTC) during deep-sleep
Replies: 3
Views: 381

Isolate GPIO (not RTC) during deep-sleep

Hi everybody, I have the necessity to isolate some GPIO (not RTC) like GPIO16, GPIO18, GPIO22 and GPIO23 during deepsleep in ESP32-WROOM32D module. In my case GPIO22 and GPIO23 are outputs and using gpio_hold_en(); gpio_deep_sleep_hold_en(); I'm able to fix their status during deep-sleep and wakeup ...
by davdav
Fri May 24, 2019 8:04 am
Forum: Hardware
Topic: RTC_GPIO PINS - deepsleep consumption
Replies: 2
Views: 409

Re: RTC_GPIO PINS - deepsleep consumption

Non-rtcio pins aka digital pins shouldn't be leaking in deep sleep I'm trying to understand if GPIO (non-RTC), for example GPIO22, GPO23,GPIO5, etc.., are "automatically" isolated when ESP32 goes into deep-sleep or I have to take some care depending on the external circuit (if there is a pull-up, p...
by davdav
Tue May 21, 2019 12:10 pm
Forum: General Discussion
Topic: Retain GPIO (not RTC) in deepsleep and in wake stub
Replies: 2
Views: 520

Re: Retain GPIO (not RTC) in deepsleep and in wake stub

WiFive wrote:
Tue May 21, 2019 11:31 am
gpio_hold_en
Uhm..it seems to work.

At this point: I'm a little confused. gpio_hold_en() should be used when device is NOT in deep_sleep.
Need to study the docs again..

Thanks
by davdav
Tue May 21, 2019 11:09 am
Forum: General Discussion
Topic: Retain GPIO (not RTC) in deepsleep and in wake stub
Replies: 2
Views: 520

Retain GPIO (not RTC) in deepsleep and in wake stub

Hi Everybody, I need to retain a GPIO which is not in RTC controller (in my case GPIO22) in deepsleep. Below it is a simple test: -application setup GPIO22 as output and it is turned on. -a wake-up timer of 5 seconds is setup -esp32 is put in deep_sleep -a wake stub is provided to setup GPIO22 as ou...
by davdav
Mon May 20, 2019 1:23 pm
Forum: ESP32 IDF
Topic: [Solved] Can RTC IO output state be retained in hibernation mode?
Replies: 3
Views: 1662

Re: [Solved] Can RTC IO output state be retained in hibernation mode?

Thanks @ESP_igrr! Works great from both main program (using rtc_gpio_hold_en / dis) and from ULP (using individual registers and bits). EDIT: A short description how to use hold enable / disable functionality together with an ULP program is available under https://github.com/krzychb/ulp-loop Hi @kr...
by davdav
Tue May 07, 2019 11:49 am
Forum: General Discussion
Topic: [SOLVED] mDNS
Replies: 2
Views: 237

Re: mDNS

Thanks @WiFive. Got it.
by davdav
Tue May 07, 2019 10:57 am
Forum: General Discussion
Topic: [SOLVED] mDNS
Replies: 2
Views: 237

[SOLVED] mDNS

Hi eveybody, I'm testing mDNS component and I have setup it using this simple code: //initialize mDNS service esp_err_t err = mdns_init(); if (err) { ESP_LOGW(TAG_WIFI, "MDNS Init failed: 0x%X\n", err); } else { //set hostname mdns_hostname_set("avior"); //set default instance mdns_instance_name_set...
by davdav
Mon Apr 29, 2019 12:42 pm
Forum: General Discussion
Topic: flash encryption (pre-generated key) procedure flow
Replies: 13
Views: 1835

Re: flash encryption (pre-generated key) procedure flow

Thanks @ESP_Angus for confirmation.

I will go through the proposed solution.

Thank you.

Go to advanced search