Search found 297 matches

by boarchuz
Wed Jan 09, 2019 4:17 pm
Forum: ESP32 Arduino
Topic: uSeconds?
Replies: 2
Views: 1325

Re: uSeconds?

You can see the micros() function here: https://github.com/espressif/arduino-esp32/blob/2fd39b1aff1c1f2be60bbd9b5fbd9c88638b0fcc/cores/esp32/esp32-hal-misc.c#L104 So you can use (unsigned long) (esp_timer_get_time() / 1000) if that is ESP32ish enough for you. But then, you may as well just use micro...
by boarchuz
Sat Dec 29, 2018 3:46 pm
Forum: ESP32 Arduino
Topic: Any update on WPA2 connection bug?
Replies: 0
Views: 874

Any update on WPA2 connection bug?

Is there any timeline for a fix? Should we still be expecting a fix at all...? Considering how common WPA2 is and how many people opt for ESP32 for WiFi functionality, I would've thought this would be an issue of the highest priority. (For those unaware: ESP32+WPA2 connection to WiFi network takes a...
by boarchuz
Fri Dec 21, 2018 6:48 am
Forum: General Discussion
Topic: Hello forum. A beginner question
Replies: 5
Views: 2138

Re: Hello forum. A beginner question

How often does each client need to update the state of its switch? Unless these switches are toggling very quickly/frequently, you might be able to get away with just disconnecting after updating the server, then idling until the switch changes state again.
by boarchuz
Wed Dec 19, 2018 7:52 pm
Forum: ESP32 Arduino
Topic: Keeping AP alive when changing STA
Replies: 3
Views: 2080

Re: Keeping AP alive when changing STA

It only has a single radio. When you give it that dummy SSID, it starts scanning around on different channels looking for something that matches to connect to. Understandably, the connection between clients and the AP can then become a little unstable, and some client devices may even disconnect. Yo...
by boarchuz
Wed Dec 19, 2018 5:45 am
Forum: ESP32 Arduino
Topic: BLE and WiFi Tasks Memory Allocation Failed
Replies: 3
Views: 2346

Re: BLE and WiFi Tasks Memory Allocation Failed

Well it looks like you're running out of memory. What usStackDepth are you creating the WiFi task with?
by boarchuz
Tue Dec 18, 2018 1:33 pm
Forum: General Discussion
Topic: esp_wifi_set_max_tx_power, help with programming guide info
Replies: 6
Views: 3680

Re: esp_wifi_set_max_tx_power, help with programming guide info

I actually had a look at the esp_wifi_set_max_tx_power function this time and it seems fairly clear to me, though I agree the values seem rather arbitrary. Here's my understanding as an amateur: esp_wifi_set_max_tx_power takes a int8_t as a parameter indicating the desired power level. So acceptable...
by boarchuz
Tue Dec 18, 2018 12:08 pm
Forum: General Discussion
Topic: esp_wifi_set_max_tx_power, help with programming guide info
Replies: 6
Views: 3680

Re: esp_wifi_set_max_tx_power, help with programming guide info

At the same link you provided there's also esp_wifi_get_max_tx_power(int8_t *power) which seems to complement the function to set it.
https://demo-dijiudu.readthedocs.io/en/ ... erP6int8_t

So I think 78 is your answer.
by boarchuz
Sat Dec 15, 2018 10:22 pm
Forum: ESP32 Arduino
Topic: Entering deep sleep and wake up with one button
Replies: 1
Views: 2025

Re: Entering deep sleep and wake up with one button

You should only be flagging it in the interrupt routine (eg. _goToSleep=true;). That's all.

Then handle it in the loop: if(_goToSleep)...

I'd suggest an external pulldown too.
by boarchuz
Sat Dec 15, 2018 9:23 pm
Forum: ESP32 Arduino
Topic: Help with Rotary Encoder and ESP32 Thing
Replies: 3
Views: 3915

Re: Help with Rotary Encoder and ESP32 Thing

I was playing with the pulse counter module a little while ago for something different. Upload this and see if it's useful for you: #include "driver/pcnt.h" #define ENCODER_PIN_A GPIO_NUM_13 #define ENCODER_PIN_B GPIO_NUM_14 #define PULSE_COUNT_UNIT PCNT_UNIT_0 int16_t theCounter = 0; static void in...
by boarchuz
Tue Dec 11, 2018 1:37 am
Forum: ESP32 Arduino
Topic: Additional current draw in Deep Sleep+ULP if WiFi.begin() called
Replies: 5
Views: 2392

Re: Additional current draw in Deep Sleep+ULP if WiFi.begin() called

ESP_igrr wrote:
Mon Dec 10, 2018 2:54 pm
This is a regression in recent versions of ESP-IDF. We are working on a fix. For now you can add a call 'adc_power_off();' (from driver/adc.h) right before entering deep sleep.
Tested and confirmed! Thankyou!

Go to advanced search