#include "NSConsumerDiscovery.h"
#include "NSConsumerNetworkEventListener.h"
-#define NS_PRESENCE_SUBSCRIBE_QUERY "/oic/ad?rt=oic.wk.notification"
+#define NS_PRESENCE_SUBSCRIBE_QUERY "/oic/ad?rt=x.org.iotivity.notification"
void NSConnectionStateListener(const CAEndpoint_t * info, bool isConnected);
void NSConsumerListenerTermiate()
{
- CARegisterNetworkMonitorHandler(NULL, NULL);
+ CAUnregisterNetworkMonitorHandler(NSAdapterStateListener, NSConnectionStateListener);
OCCancel(*getPresenceHandle(), NS_QOS, NULL, 0);
}
NS_VERIFY_NOT_NULL_V(info);
NS_LOG_V(DEBUG, "adapter : %d", info->adapter);
- NS_LOG_V(DEBUG, "remote_address : %s:%d", info->addr, info->port);
+ NS_LOG_V(INFO_PRIVATE, "remote_address : %s:%d", info->addr, info->port);
NS_LOG_V(DEBUG, "isConnect : %d", connected);
NSTaskType type = TASK_EVENT_CONNECTED;