Skip to content

Commit

Permalink
Controller.Api.Websocket: fix subscribe topic for event handler
Browse files Browse the repository at this point in the history
Fixes the error on startup: "WARN  [org.apache.felix.eventadmin   ] EventAdmin: Invalid EVENT_TOPICS : Missing - Ignoring ServiceReference"
  • Loading branch information
sfeilmeier committed Aug 6, 2020
1 parent 3497e23 commit b019ee5
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -19,6 +19,7 @@
import org.osgi.service.component.annotations.ReferencePolicy;
import org.osgi.service.component.annotations.ReferencePolicyOption;
import org.osgi.service.event.Event;
import org.osgi.service.event.EventConstants;
import org.osgi.service.event.EventHandler;
import org.osgi.service.metatype.annotations.Designate;
import org.slf4j.Logger;
Expand Down Expand Up @@ -46,7 +47,10 @@
name = "Controller.Api.Websocket", //
immediate = true, //
configurationPolicy = ConfigurationPolicy.REQUIRE, //
property = "org.ops4j.pax.logging.appender.name=Controller.Api.Websocket")
property = { //
"org.ops4j.pax.logging.appender.name=Controller.Api.Websocket", //
EventConstants.EVENT_TOPIC + "=" + EdgeEventConstants.TOPIC_CONFIG_UPDATE //
})
public class WebsocketApi extends AbstractOpenemsComponent
implements Controller, OpenemsComponent, PaxAppender, EventHandler {

Expand Down

0 comments on commit b019ee5

Please sign in to comment.