Add public function tdRemoveController() to telldus-core, see #108
This commit is contained in:
parent
3de0a98f89
commit
a766fe32de
5 changed files with 47 additions and 0 deletions
|
@ -245,6 +245,10 @@ void ClientCommunicationHandler::parseMessage(const std::wstring &clientMessage,
|
|||
std::wstring value = TelldusCore::Message::takeString(&msg);
|
||||
(*intReturn) = d->controllerManager->setControllerValue(id, name, value);
|
||||
|
||||
} else if (function == L"tdRemoveController") {
|
||||
int controllerId = TelldusCore::Message::takeInt(&msg);
|
||||
(*intReturn) = d->controllerManager->removeController(controllerId);
|
||||
|
||||
} else{
|
||||
(*intReturn) = TELLSTICK_ERROR_UNKNOWN;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue