set(amb_examples configwheel databaseconfig databasesource dbusconfig exampleconfig
- gpsnmea obdsourceconfig opencvluxconfig opencvdbusconfig qtmainloopconfig websocketsink2 websocketsource2)
+ gpsnmea obdsourceconfig opencvluxconfig opencvdbusconfig qtmainloopconfig websocketsink2 websocketsource2
+ testsourceconfig)
install (FILES ${amb_examples} DESTINATION /etc/ambd/examples)
AsyncPropertyReply *ExampleSourcePlugin::setProperty(AsyncSetPropertyRequest request )
{
AsyncPropertyReply *reply = new AsyncPropertyReply(request);
+ reply->success = false;
if(reply->property == VehicleProperty::AirConditioning)
{
reply->completed(reply);
}
+
+ return reply;
}
+
+ reply->error = AsyncPropertyReply::InvalidOperation;
+ reply->completed(reply);
+ return reply;
}
void ExampleSourcePlugin::subscribeToPropertyChanges(VehicleProperty::Property property)