summaryrefslogtreecommitdiff
path: root/docs/esp32/tutorial
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2024-11-13 10:16:25 +1100
committerAngus Gratton <gus@projectgus.com>2024-11-28 15:39:06 +1100
commit951a10e7078413d2dee2758fc2b7cb292e2b50b7 (patch)
treecd24e03003438f280f48b639f116b6b7808fb476 /docs/esp32/tutorial
parent7647c828de4ffb9877163909017bbe909e79aacb (diff)
esp32: Fix setting WLAN channel in AP mode.
- Previously the call to esp_wifi_set_channel() would be immediately overridden by calling esp_wifi_config(...) with the previous channel set. - AP interface doesn't seem to need more than esp_wifi_config(...) to work. It will automatically configure 40MHz bandwidth and place the secondary channel using similar logic to what was being explicitly calculated here. - However, calling esp_wifi_set_channel() on the STA interface is necessary if using this interface with ESP-NOW (without connecting to an AP). So the esp_wifi_set_channel() call is kept in for this purpose. Without this, tests/multi_espnow/70_channel.py fails. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'docs/esp32/tutorial')
0 files changed, 0 insertions, 0 deletions