IoTivity C++ SDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OIC::Service::EasySetup Class Reference

This provides an API to instanciate a new RemoteEnrollee object correspondent to Enrollee Device to be setup. More...

Public Member Functions

std::shared_ptr< RemoteEnrolleecreateRemoteEnrollee (std::shared_ptr< OC::OCResource > enrolleeResource)
 This API is used for creating a remote Enrollee instance. More...
 

Static Public Member Functions

static EasySetupgetInstance ()
 API for getting the instance of EasySetup singleton class. More...
 

Detailed Description

This provides an API to instanciate a new RemoteEnrollee object correspondent to Enrollee Device to be setup.

Member Function Documentation

std::shared_ptr<RemoteEnrollee> OIC::Service::EasySetup::createRemoteEnrollee ( std::shared_ptr< OC::OCResource enrolleeResource)

This API is used for creating a remote Enrollee instance.

Parameters
enrolleeResourcean OCResource object corresponding to enrollee resource discovered in a network. The OCResource object can be obtained by calling OCPlatform.findResource() API. What resource you have to discover with the OCPlatform.findResource() API is a "easysetup" resource with a certain resource type, i.e. oic.r.easysetup
Exceptions
ESBadRequestExceptionIf createEnrolleeDevice is invoked with the same provisioning information.
Returns
Pointer to RemoteEnrollee instance.
static EasySetup* OIC::Service::EasySetup::getInstance ( )
static

API for getting the instance of EasySetup singleton class.

Returns
EasySetup instance.

The documentation for this class was generated from the following file: