in source/shadow.c [430:451]
static ShadowStatus_t extractThingName( const char * pTopic,
uint16_t topicLength,
uint16_t * pConsumedTopicLength,
uint8_t * pThingNameLength )
{
/* Extract thing name. */
ShadowStatus_t shadowStatus = validateName( &( pTopic[ *pConsumedTopicLength ] ),
topicLength - *pConsumedTopicLength,
SHADOW_THINGNAME_MAX_LENGTH,
pThingNameLength );
if( shadowStatus != SHADOW_SUCCESS )
{
shadowStatus = SHADOW_THINGNAME_PARSE_FAILED;
}
else
{
*pConsumedTopicLength += *pThingNameLength;
}
return shadowStatus;
}