I‘m trying to message more than 20 devices, so i‘m deleting the peer after messaging it.
Basically i call esp_now_del_peer after esp_now_send.
However, it doesn‘t work. The 21st device doesn‘t seem to receive directed messages.
Am I doing something wrong or expecting something that doesn‘t work?
Search found 15 matches
- Sun Jul 21, 2024 11:30 pm
- Forum: General Discussion
- Topic: Esp_now_del_peer doesn‘t seem to work?
- Replies: 1
- Views: 983
- Thu Jul 18, 2024 11:54 pm
- Forum: Documentation
- Topic: ESP_NOW broadcasts stop working after light sleep
- Replies: 1
- Views: 4382
Re: ESP_NOW broadcasts stop working after light sleep
Edit: i think this fixes it. when i deinitialize esp_now i also have to add the broadcastaddress back to the peer list. memcpy(&peerInfo.peer_addr, messageHandler.broadcastAddress, 6); peerInfo.channel = 0; peerInfo.encrypt = false; // Add peer if (esp_now_add_peer(&peerInfo) != ESP_OK){ Serial.prin...
- Thu Jul 18, 2024 11:22 pm
- Forum: Documentation
- Topic: ESP_NOW broadcasts stop working after light sleep
- Replies: 1
- Views: 4382
ESP_NOW broadcasts stop working after light sleep
This is the code that runs before and after light sleep: ``` WiFi.disconnect(); WiFi.mode(WIFI_OFF); esp_now_deinit(); esp_sleep_enable_timer_wakeup(sleepTime); esp_light_sleep_start(); WiFi.mode(WIFI_STA); if (esp_now_init() != 0) { Serial.println("Error initializing ESP-NOW"); return; } esp_now_re...
- Sun Jul 14, 2024 10:19 am
- Forum: General Discussion
- Topic: ESP32 S3 WROOM and RTC_SLOW_FREQ_RTC
- Replies: 1
- Views: 1044
ESP32 S3 WROOM and RTC_SLOW_FREQ_RTC
I'm struggling to find out which oscillator exactly RTC_SLOW_FREQ_RTC is referring to on my ESP32 S3 board (custom built). this is the default setting that I get out of rtc_clk_slow_src_get() . Documentation is sparse at best, so... this is my source for this. https://github.com/espressif/esp-idf/bl...
- Tue Jun 25, 2024 11:00 am
- Forum: Hardware
- Topic: Multiplexing XTAL?
- Replies: 1
- Views: 1327
Multiplexing XTAL?
I am using an ESP32 S3-WROOM-1 R16N8 and made the dumb mistake of checking the XTAL pins when moving my design from an S2.
So instead of attaching them to Pins 21 and 22 they are attached to Pins 8 and 9.
Is there a way of multiplexing thiss? Or am i just outta luck?
So instead of attaching them to Pins 21 and 22 they are attached to Pins 8 and 9.
Is there a way of multiplexing thiss? Or am i just outta luck?
- Wed May 22, 2024 11:14 pm
- Forum: Hardware
- Topic: ESP32-S3 N16R8: GPIO17 high during boot mode
- Replies: 0
- Views: 1325
ESP32-S3 N16R8: GPIO17 high during boot mode
In my design I have a LED attached to the board. GPIO17 is attached to the BLUE pin of the LED. When i put my board into BOOT mode (pull GPIO0 to ground), the LED turns on Blue, meaning - i assume - that GPIO17 is set to HIGH during Boot? In my previous version of the board i had the Blue pin attach...
- Sat Apr 27, 2024 9:49 pm
- Forum: Hardware
- Topic: ESP32 S3 Automatic Boot / Reboot when flashing
- Replies: 4
- Views: 1557
Re: ESP32 S3 Automatic Boot / Reboot when flashing
do i read this correctly that I would have to add a CP2102 to my design?
- Sat Apr 27, 2024 7:15 pm
- Forum: Hardware
- Topic: ESP32 S3 Automatic Boot / Reboot when flashing
- Replies: 4
- Views: 1557
ESP32 S3 Automatic Boot / Reboot when flashing
I'm creating a Board with an ESP32 S3.
Is there a comprehensive guide to handle the IO0 and EN pins in a way so that I can get in and out of boot mode via software? I know the dev boards do it, but honestly i'm just lacking the right search terms.
Greatful for any help!
Is there a comprehensive guide to handle the IO0 and EN pins in a way so that I can get in and out of boot mode via software? I know the dev boards do it, but honestly i'm just lacking the right search terms.
Greatful for any help!
- Sat Apr 27, 2024 5:48 pm
- Forum: ESP-IDF
- Topic: esp_err_t 12393
- Replies: 2
- Views: 1070
Re: esp_err_t 12393
to answer my own question: This happens when you call an esp_now_send before adding the recipient address as peer.
- Sat Apr 27, 2024 12:59 pm
- Forum: ESP-IDF
- Topic: esp_err_t 12393
- Replies: 2
- Views: 1070
esp_err_t 12393
I'm getting my ESP32 into a mode where an esp_now_send returns 12393, which, in turn, esp_err_to_name() tells me is an UNKNOWN ERROR. At the sime time something seems to have clogged esp_now, as no messages are going out. Unfortunately this is extremely hard to debug, so maybe someone knows what hav...