MQTT Broker

From ESS-WIKI
Revision as of 09:45, 9 December 2019 by Sam35.lin (talk | contribs) (.)
Jump to: navigation, search

Introduction

MQTT broker as the asynchronous communication bus for Inter-service communication. Inter-service communication protocol base on MQTT standard and IETF (The Internet Engineering Task Force) defined media types for Sensor Makeup Language (SenML) in JSON format. User can follow EIS communication protocol or use Device ( for device's sensor ) or WSN-Device ( for Wireless Sensor Network ) SDK to integrate a new service with the EIS eco-system.


How To

Software Installation for Windows 10

Install Steps

  1. Copy MQTT Broker install package (ex: MQTTBrokerSetup_1.0.4.exe) to gateway.
  2. Double click MQTTBrokerSetup_x.x.x.exe to install.
  3. Click "Next" to continue the setup wizard.
  4. Select installation folder then click "Next"
  5. Click "Next" to begin the installation
  6. Complete the installation, click "Finish" to exit the setup wizard

Uninstall Steps:

  1. Select the Start button, then select Settings > Apps. Choose the MQTTBrokder to remove, and then select Uninstall.


Software Installation for Ubuntu 16.04

Install Steps

1. Copy MQTT Broker install package (ex: MQTTBrokerSetup-1.0.5-Ubuntu_16.04-x86_64.run) to gateway.

2. Execute following command

$ sudo chmod +x MQTTBrokerSetup-1.0.5-Ubuntu_16.04-x86_64.run
$ sudo ./MQTTBrokerSetup-1.0.5-Ubuntu_16.04-x86_64.run

NOTE: Please wire the gateway to Internet with Network cable before install, it is necessary to install the dependencies.

Uninstall Steps

$ sudo /usr/local/EdgeSense/MQTTBroker/uninstall.bash


Service control

In Windows

Check if ​service is running:

  • Use Service to check status of ​Mosquitto Broker service

Restart ​service:

  • Use Service to restart Mosquitto Broker service

Start ​service:

  • Use Service start Mosquitto Broker service

Stop service:

  • Use Service stop Mosquitto Broker service

In Ubuntu

Check if ​service is running:

$ sudo systemctl status mosquitto.service

Restart ​service:

$ sudo systemctl restart mosquitto.service

Start ​service:

$ sudo systemctl start mosquitto.service

Stop ​service:

$ sudo systemctl stop mosquitto.service


Release

Index Version
Date
Platform
OS
Release Note
Download
1 1.0.1
x86_64 CPU
Windows

Download - v1.0.1

Above files are available at local server, please paste file's url in File Explorer to copy file.

2 1.0.2
x86_64 CPU
Windows

Download - v1.0.2

Above files are available at local server, please paste file's url in File Explorer to copy file.

3 1.0.3
x86_64 CPU
Windows

Download - v1.0.3

Above files are available at local server, please paste file's url in File Explorer to copy file.

4 1.0.3
x86_64 CPU
Ubuntu 16.04

Download - v1.0.3

Above files are available at local server, please paste file's url in File Explorer to copy file.

5 1.0.4
x86_64 CPU
Windows

Download - v1.0.4

Above files are available at local server, please paste file's url in File Explorer to copy file.

6 1.0.4
x86_64 CPU
Ubuntu 16.04

Download - v1.0.4

Above files are available at local server, please paste file's url in File Explorer to copy file.

7 1.0.5
x86_64 CPU
Ubuntu 16.04

Download - v1.0.5

Above files are available at local server, please paste file's url in File Explorer to copy file.









Reference

https://en.wikipedia.org/wiki/MQTT#MQTT_Broker