Take the value from the sensor object instead of the message. This way we allow it to be converted into a more suitable format.
This commit is contained in:
parent
59325ddc12
commit
c4864af31b
1 changed files with 1 additions and 1 deletions
|
@ -712,7 +712,7 @@ void DeviceManager::setSensorValueAndSignal( const std::string &dataType, int da
|
|||
eventData->model = sensor->model();
|
||||
eventData->sensorId = sensor->id();
|
||||
eventData->dataType = dataTypeId;
|
||||
eventData->value = TelldusCore::charToWstring(msg.getParameter(dataType).c_str());
|
||||
eventData->value = TelldusCore::charToWstring(sensor->value(dataTypeId).c_str());
|
||||
eventData->timestamp = (int)timestamp;
|
||||
d->deviceUpdateEvent->signal(eventData);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue