It is required to change notification-service resource type to pass CTT as below.
x.org. naming scheme is accepted as vendor specific resource name
during OCF F2F meeting in Vegas.
oic.wk.xxx -> x.org.iotivity.xxx
Change-Id: I7e9d50c315ad7cd4beda6b4454e525dc03d3bfb5
Signed-off-by: cc <ch79.cho@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16687
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
void findProvider()
{
- OC::OCPlatform::findResource("", std::string("/oic/res?rt=oic.wk.notification"),
+ OC::OCPlatform::findResource("", std::string("/oic/res?rt=x.org.iotivity.notification"),
OCConnectivityType::CT_DEFAULT,
std::bind(&NSConsumerSimulator::findResultCallback, this, std::placeholders::_1),
OC::QualityOfService::LowQos);
try
{
- std::vector<std::string> rts{"oic.wk.notification"};
+ std::vector<std::string> rts{"x.org.iotivity.notification"};
m_msgResource
= OC::OCPlatform::constructResourceObject(
OC::OCPlatform::startPresence(30);
std::string notificationUri = m_notificationUri;
- std::string resourceTypeName = "oic.wk.notification.topic";
+ std::string resourceTypeName = "x.org.iotivity.notification.topic";
std::string resourceInterface = OC::DEFAULT_INTERFACE;
uint8_t resourceProperty = OC_OBSERVABLE;
}
//resourceProperty |= OC_OBSERVABLE;
- resourceTypeName = "oic.wk.notification.message";
+ resourceTypeName = "x.org.iotivity.notification.message";
childUri = uri + m_messageUri;
try
{
std::cout << e.what() << std::endl;
}
- resourceTypeName = "oic.wk.notification.sync";
+ resourceTypeName = "x.org.iotivity.notification.sync";
childUri = uri + m_syncUri;
try
{
}
resourceProperty |= OC_DISCOVERABLE;
- resourceTypeName = "oic.wk.notification";
+ resourceTypeName = "x.org.iotivity.notification";
try
{
OC::OCPlatform::registerResource(
#define RESOURCE_TAG "NS_PROVIDER_RESOURCE"
#define TOPIC_TAG "NS_PROVIDER_TOPIC"
-#define NS_ROOT_TYPE "oic.wk.notification"
-#define NS_COLLECTION_MESSAGE_TYPE "oic.wk.notification.message"
-#define NS_COLLECTION_SYNC_TYPE "oic.wk.notification.sync"
-#define NS_COLLECTION_TOPIC_TYPE "oic.wk.notification.topic"
+#define NS_ROOT_TYPE "x.org.iotivity.notification"
+#define NS_COLLECTION_MESSAGE_TYPE "x.org.iotivity.notification.message"
+#define NS_COLLECTION_SYNC_TYPE "x.org.iotivity.notification.sync"
+#define NS_COLLECTION_TOPIC_TYPE "x.org.iotivity.notification.topic"
#define NS_INTERFACE_READ "oic.if.r"
#define NS_INTERFACE_READWRITE "oic.if.rw"
#include "ocstack.h"
#define NS_QOS OC_HIGH_QOS
-#define NS_RESOURCE_TYPE "oic.wk.notification"
+#define NS_RESOURCE_TYPE "x.org.iotivity.notification"
#define NS_RESOURCE_URI "/notification"
#define NS_INTERFACE_BASELINE "oic.if.baseline"
#define NS_RESOURCE_QUERY "/oic/res"
-#define NS_DISCOVER_QUERY "/oic/res?rt=oic.wk.notification"
+#define NS_DISCOVER_QUERY "/oic/res?rt=x.org.iotivity.notification"
#define NS_DEVICE_ID_LENGTH 37
typedef enum
#include "oic_malloc.h"
#include "oic_string.h"
-#define NS_DISCOVER_QUERY "/oic/res?rt=oic.wk.notification"
-#define NS_PRESENCE_SUBSCRIBE_QUERY_TCP "/oic/ad?rt=oic.wk.notification"
+#define NS_DISCOVER_QUERY "/oic/res?rt=x.org.iotivity.notification"
+#define NS_PRESENCE_SUBSCRIBE_QUERY_TCP "/oic/ad?rt=x.org.iotivity.notification"
OCStackApplicationResult NSConsumerPresenceListener(
void * ctx, OCDoHandle handle, OCClientResponse * clientResponse)
#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 findProvider()
{
- OC::OCPlatform::findResource("", std::string("/oic/res?rt=oic.wk.notification"),
+ OC::OCPlatform::findResource("", std::string("/oic/res?rt=x.org.iotivity.notification"),
OCConnectivityType::CT_DEFAULT,
std::bind(&NSConsumerSimulator::findResultCallback, this, std::placeholders::_1),
OC::QualityOfService::LowQos);
{
if(resource->uri() == "/notification")
{
- resource->get(std::string("oic.wk.notification"), std::string("oic.if.baseline"),
+ resource->get(std::string("x.org.iotivity.notification"), std::string("oic.if.baseline"),
OC::QueryParamsMap(), std::bind(&NSConsumerSimulator::onGet, this,
std::placeholders::_1, std::placeholders::_2, std::placeholders::_3,
resource), OC::QualityOfService::LowQos);
try
{
- std::vector<std::string> rts{"oic.wk.notification"};
+ std::vector<std::string> rts{"x.org.iotivity.notification"};
m_msgResource
= OC::OCPlatform::constructResourceObject(
if(rep.getValue<int>("messageid") == 3)
{
- m_topicResource->get(std::string("oic.wk.notification"),
+ m_topicResource->get(std::string("x.org.iotivity.notification"),
std::string("oic.if.baseline"), OC::QueryParamsMap(),
std::bind(&NSConsumerSimulator::onTopicGet, this, std::placeholders::_1,
std::placeholders::_2, std::placeholders::_3, m_topicResource),
OC::OCPlatform::startPresence(30);
std::string notificationUri = m_notificationUri;
- std::string resourceTypeName = "oic.wk.notification.topic";
+ std::string resourceTypeName = "x.org.iotivity.notification.topic";
std::string resourceInterface = OC::DEFAULT_INTERFACE;
uint8_t resourceProperty = OC_OBSERVABLE;
}
//resourceProperty |= OC_OBSERVABLE;
- resourceTypeName = "oic.wk.notification.message";
+ resourceTypeName = "x.org.iotivity.notification.message";
childUri = uri + m_messageUri;
try
{
std::cout << e.what() << std::endl;
}
- resourceTypeName = "oic.wk.notification.sync";
+ resourceTypeName = "x.org.iotivity.notification.sync";
childUri = uri + m_syncUri;
try
{
}
resourceProperty |= OC_DISCOVERABLE;
- resourceTypeName = "oic.wk.notification";
+ resourceTypeName = "x.org.iotivity.notification";
try
{
OC::OCPlatform::registerResource(