Posts

Showing posts from January, 2017

Develop an "AgriNode bundle " for Eclipse Kura (using Bitreactive)

Image
In my previous post:   MOSQUITTO  (MQTT BROKER) DEMO . (MQTT broker is installed into a Gateway with host IP: 172.16.1.1:1883). In this demo, I build a bundle which is installed in Kura .  For my project, the bundle purpose is to send an MQTT message from the Gateway to sensor nodes every specific time which can be set by a user via Kura UI. This means that the gateway will send a command for requiring data from sensor nodes. Therefore, sensor nodes need to subscribe the topic that the gateway publishes to. The figure below illustrates this demo: In the figure, the "Gateway" is a Raspberry Pi 2. The "sensor node" will be Arduino ESP8266 but in this demo, I use an Android phone for monitoring message from the gateway. If you are interested in this demo please follow these steps: Requirements:  - Raspberry Pi 2 with Kura and Mosquitto installed. - Eclipse Java Neon with Bitreactive  installed. Step 1: Build a bundle Please follow this

MQTT demo

Image
Mosquitto  (MQTT broker) Demo MQTT  stands for  Message   Queuing Telemetry Transport which  is an ISO standard (ISO/IEC PRF 20922)   publish-subscribe -based "lightweight" messaging protocol for use on top of the  TCP/IP protocol . It is designed for connections to remote locations where a "small code footprint" is required or the network bandwidth is limited. The  publish-subscribe messaging pattern  requires a  message broker . The  broker  is responsible for distributing  messages  to interested clients based on the topic of a message.  Andy Stanford-Clark  and Arlen Nipper of  Cirrus Link Solutions  authored the first version of the protocol in 1999 [1].  In this demo, I work on Mosquitto platform (An Open source MQTT v3.1/v3.1.1 Broker) The picture shows the basic MQTT protocol. MQTT broker - Mosquitto is installed into a PC (Windows, Linux, Raspbian,...). The clients - Publisher/Subscriber connect to MQTT broker via WiFi which is established by