-
Hi there, Is there an API (CLI) to get list of border routers in the network form an end device? With DNS-SD could not find any examples on how to query for _meshcop._udp service from an end device (FTD or MTD), With SRP I had to know an border router IP address in order to get it working (a chicken and egg situation) On the border router I added coap-srv service, as follows:
Then I had to run
to get the IP address to use it on an MTD node, as follows:
It seems to me that I am doing something wrong here. Any suggestions are welcome. Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
I think you can use |
Beta Was this translation helpful? Give feedback.
-
The openthread/include/openthread/srp_client.h Lines 271 to 310 in c73829f You can also get the address of the currently selectd server from client: openthread/include/openthread/srp_client.h Lines 245 to 256 in c73829f BRs that provide SRP server (or DNS resolver/Adv-proxy) function will publish specific "SRP/DNS service entries" in Network Data. This is parsed and monirtoed by SRP client and/or DNS client. A related config for how DNS client will pick the resolver/server address: openthread/src/core/config/dns_client.h Lines 93 to 107 in c73829f |
Beta Was this translation helpful? Give feedback.
-
Resolved! |
Beta Was this translation helpful? Give feedback.
The
AutoEnable
APIs in SRP client will handle this:openthread/include/openthread/srp_client.h
Lines 271 to 310 in c73829f