/* * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #pragma once #include #include #include #ifdef __cplusplus extern "C" { #endif /** * @brief This function initiizes OpenThread state event post. * * @pram[in] instance The OpenThread instance * * @return * - ESP_OK on success * - ESP_FAIL if OpenThread state changed callback fails to be registered * */ esp_err_t esp_openthread_state_event_init(otInstance *instance); #ifdef __cplusplus } #endif