[mle] add enhanced keep-alive (#4325)

This commit introduces the first Thread 1.2 feature - enhanced keep
alive.

This commit also introduces the build config
OPENTHREAD_CONFIG_THREAD_VERSION to include/exclude Thread 1.2 code.
This commit is contained in:
Yakun Xu
2020-02-25 13:03:19 +08:00
committed by GitHub
parent ff3033f24f
commit b01754cabf
25 changed files with 725 additions and 30 deletions
+1 -1
View File
@@ -412,7 +412,7 @@ otError otThreadSetEnabled(otInstance *aInstance, bool aEnabled)
uint16_t otThreadGetVersion(void)
{
return OPENTHREAD_THREAD_VERSION;
return OPENTHREAD_CONFIG_THREAD_VERSION;
}
bool otThreadIsSingleton(otInstance *aInstance)