[api] add API to get Thread Version (#4225)

This commit is contained in:
wgtdkp
2019-10-14 10:24:30 -07:00
committed by Jonathan Hui
parent ea0cc8f3bb
commit ff789e4ded
6 changed files with 47 additions and 18 deletions
+5
View File
@@ -414,6 +414,11 @@ otError otThreadSetEnabled(otInstance *aInstance, bool aEnabled)
return error;
}
uint16_t otThreadGetVersion(void)
{
return OPENTHREAD_THREAD_VERSION;
}
bool otThreadIsSingleton(otInstance *aInstance)
{
Instance &instance = *static_cast<Instance *>(aInstance);