mirror of
https://github.com/espressif/openthread.git
synced 2026-08-09 20:27:47 +00:00
[api] add API to get Thread Version (#4225)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user