#include <vector>
#include "OCPlatform.h"
#include "OCApi.h"
-//#include "ThingsManager.h"
#include "ThingsConfiguration.h"
#include "ThingsMaintenance.h"
#include "GroupManager.h"
const int SUCCESS_RESPONSE = 0;
-//static ThingsManager* g_thingsmanager;
static GroupManager* g_groupmanager;
static ThingsConfiguration* g_thingsConf;
static ThingsMaintenance* g_thingsMnt;
cout << "(1) Find all resources(URI: /oic/con, /oic/mnt, /factoryset)" << std::endl;
cout << "(2) Find all groups" << std::endl;
cout << "(3) Get a Configuration resource" << std::endl;
- cout << "(4) Update a region attribute value" << std::endl;
+ cout << "(4) Update a device name attribute value" << std::endl;
cout << "(5) FactoryReset (for the group)" << std::endl;
cout << "(6) Reboot (for the group)" << std::endl;
cout << "(10) Show Configuration Units" << std::endl;
continue;
}
- std::cout << "For example, change region resource's value" << std::endl;
+ std::cout << "For example, change a device name" << std::endl;
std::cout << g_configurationCollection->uri() << std::endl;
std::map< ConfigurationName, ConfigurationValue > configurations;
std::string defaultRegion;
std::string defaultCurrency;
-//static ThingsManager* g_thingsmanager;
static ThingsConfiguration* g_thingsConf;
// Forward declaring the entityHandler (Configuration)
defaultRegion = rep.getValue< std::string >("r");
defaultCurrency = rep.getValue< std::string >("c");
- std::cout << "\tSystemTime : " << defaultDeviceName << std::endl;
+ std::cout << "\DeviceName : " << defaultDeviceName << std::endl;
std::cout << "\tLocation : " << defaultLocation << std::endl;
std::cout << "\tLocationName : " << defaultLocationName << std::endl;
std::cout << "\tCurrency : " << defaultCurrency << std::endl;
OCPlatform::Configure(cfg);
g_thingsConf = new ThingsConfiguration();
- //g_thingsDiag = new ThingsMaintenance();
//**************************************************************
if (getuid() != 0)
std::cout << endl << endl << "(0) Quit" << std::endl;
std::cout << "(1) Bootstrap" << std::endl;
- std::cout << "(2) Create Configuration Resources" << std::endl;
+ std::cout << "(2) Create Configuration/Maintenance Resources" << std::endl;
cin >> g_Steps;