Update return type for network id timeout to unit8_t. (#363)
diff --git a/include/openthread.h b/include/openthread.h
index 55bf8ea..1a13661 100644
--- a/include/openthread.h
+++ b/include/openthread.h
@@ -841,7 +841,7 @@
*
* @sa otSetNetworkIdTimeout
*/
-uint32_t otGetNetworkIdTimeout(void);
+uint8_t otGetNetworkIdTimeout(void);
/**
* Set the NETWORK_ID_TIMEOUT parameter used in the Leader role.
diff --git a/src/core/openthread.cpp b/src/core/openthread.cpp
index 90f0531..b25dcc4 100644
--- a/src/core/openthread.cpp
+++ b/src/core/openthread.cpp
@@ -391,7 +391,7 @@
sThreadNetif->GetKeyManager().SetCurrentKeySequence(aKeySequenceCounter);
}
-uint32_t otGetNetworkIdTimeout(void)
+uint8_t otGetNetworkIdTimeout(void)
{
return sThreadNetif->GetMle().GetNetworkIdTimeout();
}