Search found 5 matches

by ChrisMCU
Fri Feb 19, 2021 9:17 am
Forum: ESP32 Arduino
Topic: esp_wifi_stop() is slow
Replies: 4
Views: 5672

Re: esp_wifi_stop() is slow

If I make the esp_now_send to the broadcast address (FF FF FF FF FF FF) then the esp_wifi.close() is only 1ms still. I think the delay is if there is an incomplete esp_now send.

Would be nice to make an improvement on the esp_wifi_start() side of it because 8ms is painful there.
by ChrisMCU
Tue Feb 16, 2021 12:38 pm
Forum: ESP32 Arduino
Topic: esp_wifi_stop() is slow
Replies: 4
Views: 5672

Re: esp_wifi_stop() is slow

I will look at the ESP-IDF to see if it improves things, but automatic light sleep won't work here as I am using ESP NOW and the timings of communications aren't as pre determined as with the DTIM WiFi situation involving an access point. I do need to be controlling the sleep directly and therefore ...
by ChrisMCU
Mon Feb 15, 2021 1:50 pm
Forum: ESP32 Arduino
Topic: esp_wifi_stop() is slow
Replies: 4
Views: 5672

Re: esp_wifi_stop() is slow

Thanks Angus. Automatic light sleep does look like a good solution. I'll have to look at how much pain is involved in transitioning across to ESP-IDF. It would be good to take advantage of the work I have done within Arduino though.
by ChrisMCU
Sun Feb 14, 2021 12:52 pm
Forum: ESP32 Arduino
Topic: ESP-NOW Mac Address compile error
Replies: 3
Views: 3860

Re: ESP-NOW Mac Address compile error

  1. uint8_t broadcastAddress[] = {AC:67:B2:26:5D:78};
should be:
  1. uint8_t broadcastAddress[] = {0xAC, 0x67, 0xB2, 0x26, 0x5D, 0x78};
by ChrisMCU
Sun Feb 14, 2021 11:58 am
Forum: ESP32 Arduino
Topic: esp_wifi_stop() is slow
Replies: 4
Views: 5672

esp_wifi_stop() is slow

In my application, I am using light sleep and periodically waking up and using esp now. I want the time awake to be an absolute minimum. I use the following code: esp_sleep_enable_timer_wakeup(SLEEP_US); esp_wifi_stop(); esp_light_sleep_start(); esp_wifi_start(); For the first cycle, the esp_wifi_st...