constexpr int UP_SPEED = 50;
constexpr int DOWN_SPEED = 10;
-constexpr int DEFALUT_SERVER = 1;
+constexpr int DEFAULT_SERVER = 1;
constexpr int CUSTOM_SERVER = 2;
constexpr int STOP = 3;
{
switch (processUserInput())
{
- case DEFALUT_SERVER:
+ case DEFAULT_SERVER:
// Creation of Resource & Auto control for all requests from Client.
initServer();
return CORRECT_INPUT;
constexpr int RESOURCE_TEMP = 1;
constexpr int RESOURCE_LIGHT = 2;
-constexpr int DEFALUT_SERVER = 1;
+constexpr int DEFAULT_SERVER = 1;
constexpr int CUSTOM_SERVER = 2;
constexpr int INCREASE = 1;
void runResourceModeSelection()
{
std::cout << "======================================================== \n";
- std::cout << DEFALUT_SERVER << ". Creation of Simple Resource Without Handlers \n";
+ std::cout << DEFAULT_SERVER << ". Creation of Simple Resource Without Handlers \n";
std::cout << CUSTOM_SERVER << ". Creation of Resource With Set and Get Handlers \n";
std::cout << CUSTOM_SERVER + 1 << ". Quit \n";
std::cout << "======================================================== \n";
g_currentRun = std::bind(runResourceTypeSelection,
- processUserInput(DEFALUT_SERVER, CUSTOM_SERVER));
+ processUserInput(DEFAULT_SERVER, CUSTOM_SERVER));
}
void runPresenceSelection()
constexpr int RESOURCE_LIGHT = 1;
-constexpr int DEFALUT_SERVER = 1;
+constexpr int DEFAULT_SERVER = 1;
constexpr int CUSTOM_SERVER = 2;
constexpr int INCREASE = 1;
void runResourceModeSelection()
{
std::cout << "======================================================== \n";
- std::cout << DEFALUT_SERVER << ". Creation of Secure Resource Without Handlers \n";
+ std::cout << DEFAULT_SERVER << ". Creation of Secure Resource Without Handlers \n";
std::cout << CUSTOM_SERVER << ". Creation of Secure Resource With Set and Get Handlers \n";
std::cout << CUSTOM_SERVER + 1 << ". Quit \n";
std::cout << "======================================================== \n";
g_currentRun = std::bind(runResourceTypeSelection,
- processUserInput(DEFALUT_SERVER, CUSTOM_SERVER));
+ processUserInput(DEFAULT_SERVER, CUSTOM_SERVER));
}
void runPresenceSelection()
typedef void(*ClientMenuHandler)();
typedef int ReturnValue;
-constexpr int DEFALUT_VALUE = 0;
+constexpr int DEFAULT_VALUE = 0;
constexpr int PRESENCE_ON = 1;
constexpr int PRESENCE_OFF = 2;
void *showAPIs(void *data);
-#endif // RESERVER_H__
\ No newline at end of file
+#endif // RESERVER_H__
server->setAutoNotifyPolicy(RCSResourceObject::AutoNotifyPolicy::UPDATED);
server->setSetRequestHandlerPolicy(RCSResourceObject::SetRequestHandlerPolicy::NEVER);
- server->setAttribute(g_attributeKey, DEFALUT_VALUE);
+ server->setAttribute(g_attributeKey, DEFAULT_VALUE);
string logMessage = "SERVER CREATED<br>";
dlog_print(DLOG_INFO, LOG_TAG, "#### %s", logMessage.c_str());