Page 1 of 1

That is a somewhat curious forum here...

Posted: Wed Apr 29, 2020 9:22 pm
by rin67630
The ratio views / answers is less than 1%.

Re: That is a somewhat curious forum here...

Posted: Thu Apr 30, 2020 5:35 am
by Agree007
Most questions in here can be answered by using a simple Google search, that migth be the reason 😉

Re: That is a somewhat curious forum here...

Posted: Thu Apr 30, 2020 4:47 pm
by tommeyers
That is my ratio for use.

I view frequently to learn and occasionally to teach.

The posting mostly are very specific about an area and thus few can reply from experience.

Tom

Re: That is a somewhat curious forum here...

Posted: Thu Apr 30, 2020 8:45 pm
by rin67630
Agree007 wrote: ↑
Thu Apr 30, 2020 5:35 am
Most questions in here can be answered by using a simple Google search...
Most questions, maybe...
But I could not find anything useful about the concrete syntax to enter into modem sleep, NOT light sleep, NOT deep sleep that are documented here https://docs.espressif.com/projects/esp ... leep-modes.
By the way: I am not alone: viewtopic.php?t=11326

Re: That is a somewhat curious forum here...

Posted: Thu Apr 30, 2020 9:37 pm
by ESP_Sprite
That's not that hard to find, imo...

Re: That is a somewhat curious forum here...

Posted: Fri May 01, 2020 3:27 am
by rin67630
Thank you, but what can I do with this information?
esp_err_t esp_wifi_set_ps(WIFI_PS_MAX_MODEM);
returns an error from the library:
'WIFI_PS_MAX_MODEM' was not declared in this scope.

Does that mean that the library under ...\Arduino\Hardware\espressif\esp32\libraries\WiFi just makes no use of the option?

That may explain why nobody ever publishes a working example at the library user level?

Re: That is a somewhat curious forum here...

Posted: Fri May 01, 2020 4:02 am
by Aussie Susan
It probably means that you need to update your library.
I've had some issues where code examples use a newer version of the library and therefore make API calls that are not in my version.
Also the link that you were provided does contain the name 'Latest' in the URL.
Susan

Re: That is a somewhat curious forum here...

Posted: Fri May 01, 2020 5:08 am
by ESP_Angus
rin67630 wrote: ↑
Fri May 01, 2020 3:27 am
Thank you, but what can I do with this information?
esp_err_t esp_wifi_set_ps(WIFI_PS_MAX_MODEM);
returns an error from the library:
'WIFI_PS_MAX_MODEM' was not declared in this scope.

Does that mean that the library under ...\Arduino\Hardware\espressif\esp32\libraries\WiFi just makes no use of the option?

That may explain why nobody ever publishes a working example at the library user level?
Does your Arduino sketch have the line #include "esp_wifi.h" ?

You can use most ESP-IDF function calls inside the Arduino environment, bypassing the Arduino environment APIs, but you will usually need to include additional header files from ESP-IDF to do so.

The Arduino WiFi class has WiFiClient.setSleep(bool) but this only enables WIFI_PS_MIN_MODEM (which is already the default), or disables all power savings if the argument is false.

In general, the Arduino wrappers are designed to be easier to use so they don't always expose everything which is possible via the ESP-IDF APIs.

Re: That is a somewhat curious forum here...

Posted: Fri May 01, 2020 8:12 am
by boarchuz
There's also this (expect it will be merged soon):
https://github.com/espressif/arduino-esp32/pull/3900

On-topic, I'm probably about 1000:1. I've learned a lot from the issues and solutions discussed between other people, especially when it's some component/peripheral/thingy I've never tinkered with before. Plus, when I do answer I often end up being wrong :lol: