Skip to content

@purista/mqttbridge v2.0.5


PURISTA API / @purista/mqttbridge / getTopicName

Function: getTopicName()

getTopicName(this, message): string

Defined in: mqttbridge/src/topic/getTopicName.impl.ts:31

Calculates the MQTT topic name for a message which should be sent. Something like: purista/ message_type/ principal_id/ sender_instance_id/ sender_name/ sender_version/ sender_target/ eventname/ sender_instance_id/ receiver_name/ receiver_version/ receiver_target

Parameters

this

MqttBridge

message

EBMessage

the message to send

Returns

string

the MQTT topic