mirror of
https://github.com/espressif/openthread.git
synced 2026-08-14 06:37:46 +00:00
[core] add the instance id (#9055)
It is difficult for testers to know whether the stack has been automatically restarted in the background. This commit adds an instance id to indicate whether the stack has been restarted. The instance id is set to a random value when the OpenThread instance is constructed and its value will not change after initialization.
This commit is contained in:
@@ -86,6 +86,10 @@ send "ifconfig\n"
|
||||
expect "up"
|
||||
expect_line "Done"
|
||||
|
||||
send "instanceid\n"
|
||||
expect -re {\d+}
|
||||
expect_line "Done"
|
||||
|
||||
send "ipaddr add ::\n"
|
||||
expect_line "Done"
|
||||
send "ipaddr del ::\n"
|
||||
|
||||
Reference in New Issue
Block a user