esp_wifi_mesh: add non mesh connections access

This commit is contained in:
shenjun
2021-07-30 22:17:30 +08:00
parent 1871b35df0
commit 42a1be10db
9 changed files with 50 additions and 10 deletions

View File

@@ -432,6 +432,7 @@ void app_main(void)
/* mesh softAP */
ESP_ERROR_CHECK(esp_mesh_set_ap_authmode(CONFIG_MESH_AP_AUTHMODE));
cfg.mesh_ap.max_connection = CONFIG_MESH_AP_CONNECTIONS;
cfg.mesh_ap.nonmesh_max_connection = CONFIG_MESH_NON_MESH_AP_CONNECTIONS;
memcpy((uint8_t *) &cfg.mesh_ap.password, CONFIG_MESH_AP_PASSWD,
strlen(CONFIG_MESH_AP_PASSWD));
ESP_ERROR_CHECK(esp_mesh_set_config(&cfg));