configure_file (${CMAKE_CURRENT_SOURCE_DIR}/websocketsink2.in ${CMAKE_CURRENT_SOURCE_DIR}/websocketsink2 @ONLY)
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/websocketsource2.in ${CMAKE_CURRENT_SOURCE_DIR}/websocketsource2 @ONLY)
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/testsourceconfig.in ${CMAKE_CURRENT_SOURCE_DIR}/testsourceconfig @ONLY)
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/cangenconfig.in ${CMAKE_CURRENT_SOURCE_DIR}/cangenconfig @ONLY)
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/bluemonkey/bluemonkeyconfig.in ${CMAKE_CURRENT_SOURCE_DIR}/bluemonkey/bluemonkeyconfig @ONLY)
install (FILES ${amb_examples} DESTINATION /etc/ambd/examples)
"sources" : [
{
"name" : "CANSimPlugin",
- "path":"/usr/lib/automotive-message-broker/cansimplugin.so",
+ "path":"@PLUGIN_INSTALL_PATH@/cansimplugin.so",
"interfaces" : ["vcan0", "vcan1"]
},
{
"name" : "CANGenPlugin",
- "path":"/usr/lib/automotive-message-broker/cangenplugin.so"
+ "path":"@PLUGIN_INSTALL_PATH@/cangenplugin.so"
}
],
"sinks": [
{
"name" : "DBusSink",
- "path" : "/usr/lib/automotive-message-broker/dbussinkplugin.so",
+ "path" : "@PLUGIN_INSTALL_PATH@/dbussinkplugin.so",
"frequency" : "60"
}
class BluemonkeySink : public QObject, public AmbPluginImpl
{
Q_OBJECT
+
public:
+ using AmbPluginImpl::setProperty;
+ using QObject::setProperty;
+
BluemonkeySink(AbstractRoutingEngine* e, map<string, string> config, AbstractSource& parent);
virtual PropertyList subscriptions();
virtual void supportedChanged(const PropertyList & supportedProperties);
{
std::string v = request.value->toString();
- dataReceived(nullptr,v.c_str(),v.length());
+ dataReceived(nullptr, v.c_str(), v.length());
}
return AmbPluginImpl::setProperty(request);
}
else if (name == "set")
{
+ LOG_MESSAGE("set called");
if (!propertyNames.empty())
{
//Should not happen
}
else if (!propertyData.empty())
{
- auto prop = propertyData.begin();
for (auto prop = propertyData.begin(); prop != propertyData.end(); ++prop)
{
LOG_MESSAGE("websocketsinkmanager setting " << std::get<1>(*prop) << " to " << std::get<2>(*prop) << " in zone " << std::get<3>(*prop));
template<typename T>
AsyncPropertyReply* AmbPlugin<T>::setProperty(AsyncSetPropertyRequest request)
{
- return d ? d->AmbPluginImpl::setProperty(request) : nullptr;
+ if(d)
+ return d->setProperty(request);
+ return nullptr;
}
template<typename T>