Internet of Things (IoT)


The EVE system through the “Internet of Things” technology allows you to communicate any components located in active projects in different networks.
This feature is based on the configuration of three types of devices: Broker, Publisher and Subscriber.
The first is the server where the data are recorded and can be external, that is, provided by a provider, or internal, ie using an EVE server, the second are those components that send the data to the broker, that is to the server, and instead the third parties are those components that receive the data from the broker.
Let’s take a little example to better understand the use of this feature: I have 20 offices of a company active in various parts of Italy and from headquarters I would like to control the energy consumption of each, this with EVE you can by setting the component of each office that detects consumption as publishers who will send the data to a broker, that is to a central server, which in turn will then send the data to the configured components as a subscriber in the project configured at the headquarters.
This feature can be used in either very large contexts, as explained in the example, but also in smaller contexts to have additional data retention security by using the broker as backup servers.

MQTT Broker


COMPONENT’S PROPERTIES

GUI

This component’s sample is made by using Graphic UI gateway.

Please refer to “Gateways / Protocols” guide in order to get further info.

IP: The server IP address that is used as a broker.

Port: Insert the communication port.

Username: Insert the login user.

Password: Insert the login password.

Client ID: Unique ID provided of the server provider.

Connection status: Allows you to select a Text Info component that can be inserted in the user interface to show the connection status.

Error: Allows you to select a Text Info component that can be inserted in the user interface to show the connection status.

Note:  text field available for additional information on the component from the admin side.

HELP
Logic configuration can be easily carried out by using component’s drag&drop function. When setting components on Component’s parameters, you can use the drop-down menu, or you can drag and drop them from “My components” area to the component selection field.

Reminder before continuing:

  • Download and Install EVE Logic plugin to enable plugins (link);
  • After loading .eve project to the server, wait a couple of minutes for logics activation.

MQTT Publish


COMPONENT’S PROPERTIES

GUI

This component’s sample is made by using Graphic UI gateway.

Please refer to “Gateways / Protocols” guide in order to get further info.

Component to publish: Select the component that will be the publisher.

Broker: Select the broker to send the data.

Publish topic: Enter the topic to send to the broker.

Every [s]: Enter the number of seconds you send the data to the broker.

Value Prefix: Prefix of component value.

Sed on change (checkbox): If selected, it sends the value at each change.

Note: text field available for additional information on the component from the admin side.

HELP
Logic configuration can be easily carried out by using component’s drag&drop function. When setting components on Component’s parameters, you can use the drop-down menu, or you can drag and drop them from “My components” area to the component selection field.

Reminder before continuing:

  • Download and Install EVE Logic plugin to enable plugins (link);
  • After loading .eve project to the server, wait a couple of minutes for logics activation.

MQTT Subscribe


COMPONENT’S PROPERTIES

GUI

This component’s sample is made by using Graphic UI gateway.

Please refer to “Gateways / Protocols” chapter in order to get further info.

Broker: Select the broker from which to receive the data.

Subscribe topic: Enter the topic to receive from the broker.

Value Prefix: The prefix indicating at the broker which value of a given topic is accepted by the following subscribe.

Component to subscribe: Insert the component that is subscribed.

Note: text field available for additional information on the component from the admin side.

HELP
Logic configuration can be easily carried out by using component’s drag&drop function. When setting components on Component’s parameters, you can use the drop-down menu, or you can drag and drop them from “My components” area to the component selection field.

Reminder before continuing:

  • Download and Install EVE Logic plugin to enable plugins (link);
  • After loading .eve project to the server, wait a couple of minutes for logics activation.

Well done, keep learning!

Our suggestion for your next lesson: