Device state and device state value implemented
This commit is contained in:
parent
dfa1a2e897
commit
ae5655abbe
7 changed files with 146 additions and 24 deletions
|
@ -93,12 +93,11 @@ void ClientCommunicationHandler::parseMessage(const std::wstring &clientMessage,
|
|||
} else if (function == L"tdLastSentCommand") {
|
||||
int deviceId = TelldusCore::Message::takeInt(&msg);
|
||||
int methodsSupported = TelldusCore::Message::takeInt(&msg);
|
||||
(*intReturn) = 0; // tdLastSentCommand(deviceId, methodsSupported); TODO
|
||||
(*intReturn) = d->deviceManager->getDeviceLastSentCommand(deviceId, methodsSupported);
|
||||
|
||||
} else if (function == L"tdLastSentValue") {
|
||||
int deviceId = TelldusCore::Message::takeInt(&msg);
|
||||
const char *value = ""; //tdLastSentValue(deviceId); TODO
|
||||
(*wstringReturn) = TelldusCore::Message::charToWstring(value);
|
||||
(*wstringReturn) = d->deviceManager->getDeviceStateValue(deviceId);
|
||||
|
||||
} else if(function == L"tdGetNumberOfDevices"){
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue