SmartCorePublish

This block publish a message on the Altair smartcore server

    SmartCorePublish

Library

Communicate

Parameters

SmartCorePublish_0

NameLabelDescriptionData TypeValid Values

nin

Number of Inputs

Defines the number of inputs

Number

inputs

inputs

Structure

inputs/names

Names

Defines the name for each input data

Cell of strings

apikey

Apikey

Defines the Apikey for authentication.

String

device

Device

topic

Topic

Defines the topic where the message will be published.

Structure

topic/data

Data stream

Number

0
1

topic/status

Status stream

Number

0
1

connection

Connection

Defines the MQTT clean session flag.

Structure

connection/clean

Clean session

Number

0
1

connection/persistent

Persistent session

Number

0
1

retain

Retain message

If set, the message will be retained.

Number

0
1

qos

Quality of Sevice

Defines the Quality of Service to be used for the connection.

Structure

qos/qos0

0

This level guarantees a best-effort delivery. There is no guarantee of delivery. The recipient does not acknowledge receipt of the message and the message is not stored and re-transmitted by the sender.

Number

0
1

qos/qos1

1

This level guarantees that a message is delivered at least one time to the receiver. The sender stores the message until it gets a PUBACK packet from the receiver that acknowledges receipt of the message. It is possible for a message to be sent or delivered multiple times.

Number

0
1

qos/qos2

2

This level guarantees that each message is received only once by the intended recipients. It is the safest and slowest quality of service level.

Number

0
1

keepalive

Keep alive

Defines the number of seconds after which the broker should send a PING message to the client if no other messages have been exchanged in that time.

Scalar

onFailure

Do on failure

Defines the behavior on failure.

Structure

onFailure/error

Error

Number

0
1

onFailure/warning

Warning

Number

0
1

verbose

Verbose

If set, some information are written in the OML command windows. This flag help to debug.

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

nin

Port 2

activation

input

1