[bluemonkey] handle success = false from get() properly
authorKevron Rees <tripzero.kev@gmail.com>
Sat, 8 Jun 2013 20:50:48 +0000 (13:50 -0700)
committerKevron Rees <tripzero.kev@gmail.com>
Sat, 8 Jun 2013 20:50:48 +0000 (13:50 -0700)
examples/bluemonkey/bluemonkeyconfig
plugins/bluemonkey/bluemonkey.cpp

index b63a611..5cf01ac 100644 (file)
@@ -14,6 +14,9 @@
                         "path" : "/usr/lib/automotive-message-broker/databasesinkplugin.so",
                         "properties" : "{ 'properties' : ['VehicleSpeed','EngineSpeed'] }",
                        "startOnLoad" : "true"          
+               },
+               {
+                       "path" : "/usr/lib/automotive-message-broker/gpsdplugin.so"
                }
        ],
        "sinks": [
index db9547c..8c8a9c1 100644 (file)
@@ -283,7 +283,9 @@ void Property::setType(QString t)
        request.property = mValue->name;
        request.completed = [this](AsyncPropertyReply* reply)
        {
-               propertyChanged(reply->property, reply->value,uuid());
+               if(reply->success)
+                       propertyChanged(reply->property, reply->value,uuid());
+
                delete reply;
        };