You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 16 Next »

Introduction

Alarming systems can connect to our Nx70 via the MQTT protocol.

This MQTT interface will be License and Password protected.

Since software 2.35, the MQTT interface is available for starting the first tests. It is not protected by a license but you need to enable it via auto-provisioning.


How to enable the application server web-page


You need to create the provisioning file below and start provisioning (Can be done via the web-interface)

Enable MQTT web-page via provisioning

<?xml version="1.0" encoding="UTF-8"?>
<provisioning version="1.1" productID="e2">

<nvm>

<oper name="set_webui_visibility">

<param name="menu.settings/online-services/application-servers" value="visible" />

</oper>

</nvm>
</provisioning>


After the provisioning, the Application Servers page is now visible.

FAQ Nx70 - Application servers (Hidden)


Create an Application server

You now can create an application server access.

  • Id: id for external clients are: "as1", "as2" ...
  • Application server name (username) (At least one character is needed)
  • Password (has to be at least 32 characters using hexadecimal digits only: 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F)

FAQ Nx70 - Application servers (Hidden)


Add MQTT client via provisioning

<?xml version="1.0" encoding="UTF-8"?>
<provisioning version="1.1" productID="e2">

<nvm>

<oper name="set_external_client">

<param name="Username" value="as1" />
<param name="Password" value="123456789012345678901234567890ab" />

</oper>

</nvm>
</provisioning>

Example

The following test environment is used for the documentation.

environment is used.


Ubuntu preparation

First we installed the mosquitto client: sudo apt install mosquitto-clients

Host file:

Add the N870 to your host file. (/etc/hosts)

127.0.0.1       localhost
127.0.1.1       eric-VirtualBox
192.168.178.192 int-589ec60e71c0

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Location service


  • No labels