nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ aws_jobs_cmp()

bool aws_jobs_cmp ( const char *  sub,
const char *  pub,
size_t  pub_len,
const uint8_t *  suffix 
)

#include <include/net/aws_jobs.h>

Compare topics.

Check if topics match

Parameters
[in]subTopic subscribed to
[in]pubPublished topic
[in]pub_lenLength of published topic
[in]suffixSuffix to match. Cannot be NULL. Must be empty string for sub topics not ending with '#'.
Returns
true if topics with given suffix match, false otherwise.