News:

We really need your input in this questionnaire

Main Menu

Mqtt broker

Started by gmonk63, November 23, 2015, 03:54:12 AM

Previous topic - Next topic

gmonk63

maybe add support for mqtt in order to recieve sensor and other data easily with out having to compile nxevent etc for embedded devices..

Victor Kirhenshtein

Hi,

it could be interesting. Do you have some suggestions of inexpensive hardware that can be used for testing?

Best regards,
Victor

Borgso

Any linux running machines, even virtual host would work as a test.

NetXMS just need to act as a MQTT broker or connect to one and listen to topics.
This could be something like the "nxpush", but ie "nxmqtt"

Ex: embeded device announce "TOPIC/%NODE%/%DCI_VALUE%" to MQTT broker, netxms puts value into correct place.


gmonk63

Exactly as Borgso said..  I generally use mosquitto which is an opensource broker written in c   http://mosquitto.org/download/  there is also http://emqtt.io/ which is written in erlang  both brokers support websockets so you could have realtime dashboards so basically you could create a dashboard and have it subscribe to realtime data  and with the broker being integrated on the server you could just use a local client  https://github.com/eclipse/paho.mqtt.java  ( Java Client)   http://www.eclipse.org/paho/clients/c/embedded/ ( c++ Client )  to subscribe to the topics locally.. And if another Netxms server where interested in the data it would just need to subscribe to the topic using any of the above clients or simply bridge the two with a broker to broker bridge..