1 /* 2 * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #pragma once 8 9 #include <stdint.h> 10 #include <stdbool.h> 11 #include "esp_err.h" 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 /** 18 * @brief Convert user input colon separated MAC Address into 6 byte MAC Address 19 * 20 * @param[in] str User input colon separated MAC Address. 21 * @param[out] dest Output 6 byte MAC Address. 22 * 23 * @return 24 * - ESP_OK: Succeed 25 * - ESP_FAIL: Invalid input format 26 */ 27 esp_err_t esp_supplicant_str_to_mac(const char *str, uint8_t dest[6]); 28 29 #ifdef __cplusplus 30 } 31 #endif 32