[api] expose API to obtain service ALOC for given service ID (#6519)

This commit is contained in:
Pieter De Gendt
2021-04-29 18:27:02 +02:00
committed by GitHub
parent 257188b5e9
commit 84876d7f56
3 changed files with 20 additions and 1 deletions
+7
View File
@@ -193,6 +193,13 @@ const otIp6Address *otThreadGetRealmLocalAllThreadNodesMulticastAddress(otInstan
return &instance.Get<Mle::MleRouter>().GetRealmLocalAllThreadNodesAddress();
}
otError otThreadGetServiceAloc(otInstance *aInstance, uint8_t aServiceId, otIp6Address *aServiceAloc)
{
Instance &instance = *static_cast<Instance *>(aInstance);
return instance.Get<Mle::MleRouter>().GetServiceAloc(aServiceId, *static_cast<Ip6::Address *>(aServiceAloc));
}
const char *otThreadGetNetworkName(otInstance *aInstance)
{
Instance &instance = *static_cast<Instance *>(aInstance);