[mle] add discovery request callback (#5131)

This commit allows notifying the application a discovery request is
received, which is useful if the application wants to be more active
when a joiner comes.
This commit is contained in:
Yakun Xu
2020-08-11 10:22:10 -07:00
committed by GitHub
parent 644e0a30f7
commit 66dcbac15d
9 changed files with 124 additions and 15 deletions
@@ -88,7 +88,16 @@ wait_for "" "Done"
send "discover something_invalid\n"
expect "Error 7: InvalidArgs"
set spawn_id $spawn_1
expect "version=2,joiner=0"
set spawn_id $spawn_3
send "joiner start 123456\n"
set timeout 10
expect "NotFound"
dispose
set spawn_id $spawn_1
expect "version=2,joiner=1"
dispose_nodes