Configuration Parameter |
Selectable Option/Value |
Description |
POWERKEY GPIO pin |
0-36 |
Select the POWERKEY gpio pin to turn on the module |
UART module |
0-2 |
Select the UART module. UART module will be listed according to the available blocks of UART setup blocks |
Timeout |
10--100--1000 |
Timeout for the UART communication |
Get data from input ports |
Check--Uncheck |
Get the broker setting parameters from input ports |
Protocol |
mqtt:// - (TCP connection) |
MQTT client protocol |
Host |
|
MQTT message broker host details.Ex: https://mqtt.eclipseprojects.io/ and https://test.mosquitto.org/ are open source mqtt message brokers |
Port |
|
MQTT message broker port.TCP connection - 1883 and TLS connection - 8884.Port can different depending on the message broker use.Mentioned ports are the common ports available in most open source message brokers. |
Get data from input ports |
Check--Uncheck |
Get the client setting parameters from input ports |
MQTT Client ID |
|
Client ID details |
Enable username password |
Check--Uncheck |
Enable username and password of MQTT client |
Username |
|
Client username |
Password |
|
Client password |
Enable Last-Will message |
Check--Uncheck |
Enable Last-Will message |
Last-Will Topic |
|
Last-Will Topic |
Last-Will QoS |
0--1--2 |
Quality of service level of Last-Will message |
Last-Will Retain |
Check--Uncheck |
Enable and disable Last-Will message Retain |
Last-Will message |
|
Last-Will message of client |
INPUT Port
Port Name |
Port Type |
Date Type |
Description |
Protocol |
Vector |
uint8 |
Input the protocol type |
Host |
Vector |
uint8 |
Input MQTT message broker URL |
Port |
Scalar |
uint32 |
Input MQTT port |
OUTPUT Port
Port Name |
Port Type |
Date Type |
Description |
Status |
Scalar |
uint32 |
Status output port |
Configuration Parameter |
Selectable Option/Value |
Description |
Get data from input ports |
Check--Uncheck |
Enable parameters from input ports.Default uncheck. |
Publish topic |
|
Publish topic can be any form as you required.Ex:aimagin/data/sensor1 |
QoS |
0--1--2 |
Quality of service level of publish message |
Retain |
Check--Uncheck |
Enable and disable message Retain |
Sample time (sec) |
-1(inherited) or specify |
Specify the sample time |
INPUT Port
Port Name |
Port Type |
Date Type |
Description |
Publish message |
Vector |
uint8 |
Input the message to publish to the broker |
Publish topic |
Vector |
uint8 |
Input the publish topic |
Publish QoS |
Scalar |
uint8 |
Input the publish QoS |
Publish retain |
Scalar |
uint8 |
0 or 1 to enable or disable retain flag |
OUTPUT Port
Port Name |
Port Type |
Date Type |
Description |
Status |
Scalar |
uint32 |
Status output port |
Configuration Parameter |
Selectable Option/Value |
Description |
Get data from input ports |
Check--Uncheck |
Enable parameters from input ports |
Subscribe topic |
|
Subscribe topic can be any form as you required.Ex:aimagin/data/control1 |
QoS |
0--1--2 |
Quality of service level of subscribe message |
Sample time (sec) |
-1(inherited) or specify |
Specify the sample time |
INPUT Port
Port Name |
Port Type |
Date Type |
Description |
Subscribe topic |
Vector |
uint8 |
Input the Subscribe topic |
Subscribe QoS |
Scalar |
uint8 |
Input the Subscribe QoS |
OUTPUT Port
Port Name |
Port Type |
Date Type |
Description |
Status |
Scalar |
uint32 |
Status output port |
Subscribe message |
Vector |
uint8 |
The port outputs a vector with the data received from the subscribed topic |
This block can use to send and receive data using MQTT protocol. Using publish block can send data to the MQTT message broker and using subscribe block can receive data from MQTT message broker. It is mandatory to have a setup block when using publish or subscribe block.
•SIMCOM MQTT Setup: Use to set up connection parameters of the MQTT Client.
•SIMCOM MQTT Publish: Use to set up publish topics of MQTT Client.
•SIMCOM MQTT Subscribe: Use to set up subscribe topics of the MQTT Client.