This patch is bug-fix which adds topic notification filter for remote msg.
Change-Id: I90ae060ab2a5385fdd3c66c2614c5dd4933d83ab
Signed-off-by: cc <ch79.cho@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/11237
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
#ifdef RD_CLIENT
if(subData->remote_messageObId != 0)
{
- if(NSProviderIsTopicSubScribed(consumerTopicList->head, subData->id, msg->topic))
+ if(msg->topic)
{
- obArray[obCount++] = subData->remote_messageObId;
+ NS_LOG_V(DEBUG, "this is topic message via remote server: %s", msg->topic);
+ if(NSProviderIsTopicSubScribed(consumerTopicList->head, subData->id, msg->topic))
+ {
+ obArray[obCount++] = subData->remote_messageObId;
+ }
}
else
{