mirror of
https://github.com/espressif/openthread.git
synced 2026-07-08 21:30:24 +00:00
[api] add API to get Thread Version (#4225)
This commit is contained in:
@@ -3077,6 +3077,10 @@ void Interpreter::ProcessThread(int argc, char *argv[])
|
||||
{
|
||||
SuccessOrExit(error = otThreadSetEnabled(mInstance, false));
|
||||
}
|
||||
else if (strcmp(argv[0], "version") == 0)
|
||||
{
|
||||
mServer->OutputFormat("%u\r\n", otThreadGetVersion());
|
||||
}
|
||||
else
|
||||
{
|
||||
ExitNow(error = OT_ERROR_INVALID_ARGS);
|
||||
|
||||
Reference in New Issue
Block a user