Using compute plugins
Edge Configuration
Edge Data Routing (EventDefinition.xml)

Senseforce Edge streaming architecture

Senseforce edge example plugin data routing
Loading your compute plugin
<?xml version="1.0" encoding="utf-8"?>
<AgentConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://senseforce.io/ configurations/Schemas/appsettings.xsd" >
<EgressPlugins>
<EgressPlugin name="Mqtt_senseforce">
<FilePath>$(RuntimePath)Plugins/Egress/MqttNet/MqttNetPlugin.dll</FilePath>
<TypeName>Senseforce.Agent.Extensibility.Egress.Plugins.MqttNet.MqttHandlerTpl</TypeName>
<ConfigurationFile>$(LunaAppDataPath)configurations/OutputPlugins/MqttNet/MqttSettings.xml</ConfigurationFile>
</EgressPlugin>
</EgressPlugins>
<IngressPlugins>
<IngressPlugin name="HelloWorld">
<FilePath>$(RuntimePath)Plugins/Ingress/HelloWorld/HelloWorld.dll</FilePath>
<TypeName>Senseforce.Agent.Extensibility.Ingress.Plugins.HelloWorld.HelloWorldHandler</TypeName>
<ConfigurationFile>$(LunaAppDataPath)configurations/InputPlugins/HelloWorld/HelloWorldSettings.xml</ConfigurationFile>
</IngressPlugin>
</IngressPlugins>
<ComputePlugins>
<ComputePlugin name="Compute_demo">
<FilePath>$(RuntimePath)Plugins/[PathToYourPluginDll]\HelloWorldCompute.dll</FilePath>
<TypeName>Senseforce.Agent.Extensibility.Compute.Plugins.HelloWorld.HelloWorldComputeHandler</TypeName>
<ConfigurationFile>$(LunaAppDataPath)configurations/ComputePlugins/HelloWorldCompute/DemoSettings.xml</ConfigurationFile>
</ComputePlugin>
</ComputePlugins>
<!-- Mode: Live or offline -->
<Mode>Live</Mode>
<!-- Where to find the data routing definition file -->
<Mappings>
<FilePath>$(LunaAppDataPath)configurations</FilePath>
<FileName>EventDefinition.xml</FileName>
</Mappings>
<!-- Where to put the log file and which log level to set -->
<Logger>
<FilePath>$(LunaAppDataPath)Logs</FilePath>
<FileName>agent.log</FileName>
<!--LogLevel: Debug,Information,Warning,Error,Critical,None-->
<LogLevel>Information</LogLevel>
</Logger>
</AgentConfiguration>
Summary
Path helpers
Routing data to and from compute plugins
Edge Data Routing (EventDefinition.xml)The Senseforce data routing architecture
How to subscribe for messages?

Configuring the data routing

Last updated