#ifndef THREAD_MGMT_H
#define THREAD_MGMT_H

#include <stdint.h>

/**
 * @brief Initializes the OpenThread stack, UDP and CoAP.
 */
int thread_mgmt_init(void);

/**
 * @brief Sends a UDP message.
 */
int thread_mgmt_send_udp(const char *addr_str, uint8_t *payload, uint16_t len);

/**
 * @brief Starts device discovery via CoAP Multicast.
 */
int thread_mgmt_discover_nodes(void);

/**
 * @brief Returns the list of discovered node names (comma-separated).
 */
const char* thread_mgmt_get_discovered_list(void);

#endif