-
I try to create an SRP service subtype without using cli commands. So in my code I have created a service to add and tried to had it, but I do not succeed to have the right service name with sub type. My code to add a basic type service : services[0].mInstanceName = "ins1"; otSrpClientAddService(NULL, &services[0]); I have tried to modify the service name to declared a sub type but it did not work : services[0].mInstanceName = "ins1"; otSrpClientAddService(NULL, &services[0]); Can someone explain me what I did not understood in the service subtype creation ? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You need to add the sub-type labels separately via the You can also see how the CLI implementation processes sub-types: openthread/src/cli/cli_srp_client.cpp Lines 386 to 406 in 0756d1e |
Beta Was this translation helpful? Give feedback.
You need to add the sub-type labels separately via the
mSubTypeLabels
array in theotSrpClientService
struct.You can also see how the CLI implementation processes sub-types:
openthread/src/cli/cli_srp_client.cpp
Lines 386 to 406 in 0756d1e