Page tree
Skip to end of metadata
Go to start of metadata

Configuration Note

For more configuration settings please see: IoT agents configuration

Docker 

Run Agent with existing broker

Dependencies

  • Docker
  • MQTT Broker


Terminal
docker run -e connection_broker_mqtt_hostname=my-mqtt-hostname -p 8319:8319 docker.linksmart.eu/agent:latest

Run Agent without existing broker

Dependencies

  • Docker


Terminal
docker run --detach --name mqtt-broker -p 1883:1883 eclipse-mosquitto
docker run -e connection_broker_mqtt_hostname=mqtt-broker -p 8319:8319 docker.linksmart.eu/agent:latest

Native Java

Run Agent with existing broker

Dependencies

  • JDK >=8
  • MQTT Broker
  • wget
  • Linux distribution


Terminal
wget -q -O "agent.jar" "https://linksmart.eu/repo/service/local/artifact/maven/content?r=releases&g=eu.linksmart.services.events.gpl.distributions&a=iot.learning.universal.agent&v=LATEST"
export env_var_enabled=true
export cep_init_engines=eu.linksmart.services.event.cep.engines.EsperEngine
export agent_init_extensions=eu.linksmart.services.event.ceml.core.CEML
export connection_broker_mqtt_hostname=my-mqtt-hostname
java -jar agent.jar

Run Agent without existing broker

Dependencies

  • JDK >=8
  • APT
  • wget
  • Linux distribution


Terminal
apt-get install mosquitto
wget -q -O "agent.jar" "https://linksmart.eu/repo/service/local/artifact/maven/content?r=releases&g=eu.linksmart.services.events.gpl.distributions&a=iot.learning.universal.agent&v=LATEST"
export env_var_enabled=true
export cep_init_engines=eu.linksmart.services.event.cep.engines.EsperEngine
export agent_init_extensions=eu.linksmart.services.event.ceml.core.CEML
java -jar agent.jar
  • No labels