fix error logging; add otThreadErrorToString (#1085)

This commit is contained in:
Marcin K Szczodrak
2016-12-16 12:56:20 -08:00
committed by Jonathan Hui
parent 1a1acc9f71
commit 5dec993626
3 changed files with 159 additions and 2 deletions
+10
View File
@@ -2007,6 +2007,16 @@ OTAPI ThreadError OTCALL otIp6AddressFromString(const char *aString, otIp6Addres
*/
OTAPI uint8_t OTCALL otIp6PrefixMatch(const otIp6Address *aFirst, const otIp6Address *aSecond);
/**
* This function converts a ThreadError enum into a string.
*
* @param[in] aError A ThreadError enum.
*
* @returns A string representation of a ThreadError.
*
*/
OTAPI const char *OTCALL otThreadErrorToString(ThreadError aError);
#ifdef __cplusplus
} // extern "C"
#endif