New AP list implementation

- AP List now uses cJSON, which should be more robust than sprintf.
- Max number of access points reported now aligned with espressif's max.
- WiFi logs no longer suppressed by the wifi_manager
This commit is contained in:
Sebastien
2019-10-28 15:04:08 -04:00
parent fc1c0a4bd2
commit e4374f8554
5 changed files with 67 additions and 243 deletions

View File

@@ -278,7 +278,7 @@ void wifi_manager( void * pvParameters );
char* wifi_manager_get_ap_list_json();
char* wifi_manager_get_ip_info_json();
cJSON * wifi_manager_clear_ap_list_json(cJSON **old);
/**
* @brief saves the current STA wifi config to flash ram storage.
@@ -352,7 +352,7 @@ cJSON * wifi_manager_get_new_json(cJSON **old);
* @brief Generates the list of access points after a wifi scan.
* @note This is not thread-safe and should be called only if wifi_manager_lock_json_buffer call is successful.
*/
void wifi_manager_generate_acess_points_json();
void wifi_manager_generate_access_points_json(cJSON ** ap_list);
/**
* @brief Clear the list of access points.