esp_mesh_switch_channel() function
Cause the root device to add Channel Switch Announcement Element (CSA IE) to beacon - Set the new channel - Set how many beacons with CSA IE will be sent before changing a new channel - Enable the channel switch function @attention This API is only called by the root.
Arguments
new_bssid
the new router BSSID if the router changes
csa_newchan
the new channel number to which the whole network is moving
csa_count
channel switch period(beacon count), unit is based on beacon interval of its softAP, the default value is 15.
Return value
- ESP_OK