in source/jobs.c [699:725]
JobsStatus_t Jobs_StartNext( char * buffer,
size_t length,
const char * thingName,
uint16_t thingNameLength,
size_t * outLength )
{
JobsStatus_t ret = JobsBadParameter;
size_t start = 0U;
if( checkCommonParams() )
{
writePreamble( buffer, &start, length, thingName, thingNameLength );
ret = strnAppend( buffer, &start, length,
JOBS_API_STARTNEXT, JOBS_API_STARTNEXT_LENGTH );
start = ( start >= length ) ? ( length - 1U ) : start;
buffer[ start ] = '\0';
if( outLength != NULL )
{
*outLength = start;
}
}
return ret;
}