if(value)
{
pbshared->routingEngine->updateProperty(obj->key, value, pbshared->uuid);
+ value->timestamp = obj->time;
+ value->sequence = obj->sequence;
}
if(++itr != pbshared->playbackQueue.end())
JsonNode* node = json_parser_get_root(parser);
if(node == nullptr)
- throw std::runtime_error("Unable to get JSON root object");
+ {
+ /// no options
+ return;
+ }
JsonReader* reader = json_reader_new(node);
shared->queue.append(obj);
g_thread_join(thread);
- g_thread_unref(thread);
delete shared;
shared = NULL;
obj->value = results[i][1];
obj->source = results[i][2];
obj->time = boost::lexical_cast<double>(results[i][3]);
- obj->sequence = boost::lexical_cast<uint16_t>(results[i][4]);
+// obj->sequence = boost::lexical_cast<int>(results[i][4]);
playbackShared->playbackQueue.push_back(obj);
}
+
+ g_timeout_add(0,getNextEvent,playbackShared);
}
void DatabaseSink::initDb()
///TODO: start or stop logging thread
startDb();
reply->success = true;
+ BasicPropertyType<bool> temp(true);
+ routingEngine->updateProperty(DatabaseLoggingProperty,&temp,uuid());
}
else
{
stopDb();
reply->success = true;
+ BasicPropertyType<bool> temp(false);
+ routingEngine->updateProperty(DatabaseLoggingProperty,&temp,uuid());
}
}
{
if(!mDBusInterface || !mDBusInterface->isValid())
{
- qDebug()<<"error Interface is not valid";
+ qDebug()<<"error Interface is not valid: "<<interfaceName();
return QVariant::Invalid;
}
{
if(!mDBusInterface || !mDBusInterface->isValid())
{
- qDebug()<<"error Interface is not valid";
+ qDebug()<<"error Interface is not valid "<<interfaceName();
}
mDBusInterface->setProperty(propertyName().toAscii(), v);