resource type name is modified to follow naming convention.
Change-Id: I121bc75e627db58332778ff249f7f8fb512a23d2
Signed-off-by: jyong2.kim <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3257
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
######################################################################
HOSTING_SRC_DIR = 'src/'
resourcehosting_src = [
- HOSTING_SRC_DIR + 'hosting.cpp',
+ HOSTING_SRC_DIR + 'Hosting.cpp',
HOSTING_SRC_DIR + 'ResourceHosting.cpp',
HOSTING_SRC_DIR + 'HostingObject.cpp',
HOSTING_SRC_DIR + 'RequestObject.cpp'
resourcehosting_env.InstallTarget(resourcehostingsdk, 'libresource_hosting')
resourcehosting_env.UserInstallTargetLib(resourcehostingsdk, 'libresource_hosting')
-resourcehosting_env.UserInstallTargetHeader('include/hosting.h',\
- 'service/resource-hosting', 'hosting.h')
+resourcehosting_env.UserInstallTargetHeader('include/Hosting.h',\
+ 'service/resource-hosting', 'Hosting.h')
# Go to build Unit test
if target_os == 'linux':
}
public void findResourceCandidate() {
- nmfindResource("", "/oic/res?rt=resource.hosting");
+ nmfindResource("", "/oic/res?rt=oic.r.resourcehosting");
current_log_result += "Finding Resource... \n";
tv_current_log_result.setText(current_log_result);
Log.i(TAG, current_log_result);
public class StringConstants {
public static final String RESOURCE_URI = "/a/TempHumSensor/hosting";
- public static final String RESOURCE_TYPENAME = "resource.hosting";
+ public static final String RESOURCE_TYPENAME = "oic.r.resourcehosting";
public static final String RESOURCE_INTERFACE = OcPlatform.DEFAULT_INTERFACE; // resource interface
public static final String HUMIDITY = "humidity";
public static final String TEMPERATURE = "temperature";
const int SUCCESS_RESPONSE = OC_STACK_OK;
-#define OC_WELL_KNOWN_COORDINATING_QUERY "/oic/res?rt=resource.hosting"
+#define OC_WELL_KNOWN_COORDINATING_QUERY "/oic/res?rt=oic.r.resourcehosting"
#define OBSERVE 1
#define GET 2
void createResource()
{
std::string resourceURI = "/a/TempHumSensor/hosting";
- std::string resourceTypeName = "resource.hosting";
+ std::string resourceTypeName = "oic.r.resourcehosting";
std::string resourceInterface = DEFAULT_INTERFACE;
m_uri = resourceURI;
{
std::string resourceURI = "/a/NM/TempHumSensor1"; // URI of the resource
std::string resourceTypeName =
- "notificationmanager.hosting"; // resource type name. In this case, it is light
+ "oic.r.resourcehosting"; // resource type name.
std::string resourceInterface = DEFAULT_INTERFACE; // resource interface.
// OCResourceProperty is defined ocstack.h
#include <signal.h>
#include <unistd.h>
-#include "hosting.h"
+#include "Hosting.h"
int g_quitFlag = 0;
#include "nmutil.h"
#include <algorithm>
#include <signal.h>
-#include "hosting.h"
+#include "Hosting.h"
using namespace std;
using namespace OC;
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
extern "C" {
-#include "hosting.h"
+#include "Hosting.h"
}
#include "ResourceHosing_JNI.h"
#include "OCAndroid.h"
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#include "hosting.h"
+#include "Hosting.h"
// Standard API
#include <stdio.h>
std::string HOSTING_TAG = "/hosting";
size_t HOSTING_TAG_SIZE = (size_t)HOSTING_TAG.size();
std::string MULTICAST_PRESENCE_ADDRESS = std::string("coap://") + OC_MULTICAST_PREFIX;
- std::string HOSTING_RESOURSE_TYPE = "resource.hosting";
+ std::string HOSTING_RESOURSE_TYPE = "oic.r.resourcehosting";
}
ResourceHosting * ResourceHosting::s_instance(nullptr);
void ResourceHosting::discoverHandler(RemoteObjectPtr remoteResource)
{
- std::cout << "Discovered Resource uri : " << remoteResource->getUri() << std::endl;
std::string discoverdUri = remoteResource->getUri();
if(discoverdUri.compare(
discoverdUri.size()-HOSTING_TAG_SIZE, HOSTING_TAG_SIZE, HOSTING_TAG) != 0)