Skip to content

[Subtype] Fail of the registration service when service is a subtype #8248

Closed Answered by jwhui
estelleOl asked this question in Q&A
Discussion options

You must be logged in to vote

The service name and sub types should be configured separately. It appears you are including the sub type in both.

Also, make sure to set the last entry in the sub type array to NULL to indicate the end of the sub type list.

The SRP Client CLI provides an example of configuring sub types:

// Service subtypes are added as part of service name as a comma separated list
// e.g., "_service._udp,_sub1,_sub2"
label = strchr(string, ',');
if (label != nullptr)
{
uint16_t arrayLength;
const char **subTypeLabels = otSrpClientBuffersGetSubTypeLabelsArray(entry, &arrayLength);

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@estelleOl
Comment options

@abtink
Comment options

@estelleOl
Comment options

Answer selected by estelleOl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants