Search found 575 matches

by boarchuz
Fri Dec 21, 2018 6:48 am
Forum: General Discussion
Topic: Hello forum. A beginner question
Replies: 5
Views: 6648

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: 6896

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: 6946

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: 13536

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: 13536

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: 7061

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: 10375

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: 7353

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!
by boarchuz
Mon Dec 10, 2018 9:12 am
Forum: ESP32 Arduino
Topic: Additional current draw in Deep Sleep+ULP if WiFi.begin() called
Replies: 5
Views: 7353

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

I have a ULP program that reads a rotary encoder and wakes the cores when input is detected, then WiFi is connected to do work, then back into Deep Sleep. While testing low power consumption, I observed this (where 'WiFi.begin?' = Whether or not WiFi.begin() was called before entering Deep Sleep; 'U...
by boarchuz
Sat Dec 08, 2018 8:17 am
Forum: ESP32 Arduino
Topic: http POST fails via ESP32. Httpresponse -11 generated by HTTPClient.h
Replies: 2
Views: 6716

Re: http POST fails via ESP32. Httpresponse -11 generated by HTTPClient.h

Well what happens if you send the exact same request composed with your browser or Fiddler or similar? That's the first thing I would try, then you'll know if the issue is with your ESP32 code or the server.