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:
Micke Prag 2011-05-16 14:18:02 +00:00
parent 59325ddc12
commit c4864af31b

View file

@ -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);
}