Difference between revisions of "Edge Messaging"

From RifidiWiki

Jump to: navigation, search
(Configuration)
(Configuration)
Line 11: Line 11:
 
:Moquette (MQTT Implementation) starts by default this can be changed  
 
:Moquette (MQTT Implementation) starts by default this can be changed  
  
;-Dmoquette.path
+
;-Dmoquette.path=$Rifidi_Server_Home
 
:Use to set where the Moquette (MQTT Broker) root path can be found. This should be equal to teh Rifidi Server Home for Moquette configuration and logging  
 
:Use to set where the Moquette (MQTT Broker) root path can be found. This should be equal to teh Rifidi Server Home for Moquette configuration and logging  
 +
 +
In the config folder
 +
 +
<pre>
 +
 +
mosquette.conf
 +
 +
##############################################
 +
#  Moquette configuration file.
 +
#
 +
#  The synthax is equals to mosquitto.conf
 +
#
 +
##############################################
 +
 +
port 1883
 +
 +
host 0.0.0.0
 +
 +
password_file config/password_file.conf
 +
 +
cafile config/m2mqtt_ca.crt
 +
 +
certfile config/m2mqtt_srv.crt
 +
 +
keyfile config/m2mqtt_srv.key
 +
 +
keypassphrase ******
 +
</pre>
  
  

Revision as of 16:11, 21 November 2014

Introduction

Prior to Rifidi 3.1 (coming Fall 2014) Edge Messaging is available through ActiveMQ/JMS Interface. Starting in 3.1 Edge Messaging is now accessible though MQTT (Lightweight IoT Messaging Protocol through leveraging Moquette-mqtt plugin.

This now enables Rifidi Applications to publish events (captured via Rifidi Services for example Readzone Montoring, Stables Set) to a lightweight MQTT messaging queue

Configuration

In rifidiserver.ini - In rifidiserver.ini - A full list of Rifidi Edge configuartion parameters can be found Edge_Server_Configuration


-Dorg.rifidi.mqtt.enabled=true
Moquette (MQTT Implementation) starts by default this can be changed
-Dmoquette.path=$Rifidi_Server_Home
Use to set where the Moquette (MQTT Broker) root path can be found. This should be equal to teh Rifidi Server Home for Moquette configuration and logging

In the config folder


mosquette.conf

##############################################
#  Moquette configuration file. 
#
#  The synthax is equals to mosquitto.conf
# 
##############################################

port 1883

host 0.0.0.0

password_file config/password_file.conf

cafile config/m2mqtt_ca.crt

certfile config/m2mqtt_srv.crt

keyfile config/m2mqtt_srv.key

keypassphrase ******


Link to Rifidi Source containing MQTT - https://transcends.svn.cloudforge.com/rifidi/rifidi/trunk/org.rifidi.edge/src/org/rifidi/edge/Activator.java

Clients for Publishings/Subscribing to MqTT Broker

An example client for subscribing/consuming these messages can be found at Paho Eclipse IoT/M2M Project

Example Rifidi MQTT Integration Application