Hi Syrine,
Looking at your screenshot, $Topic and $Payload are microflow parameters, not variables that automatically read from the console.
The question is: how is this microflow being called?
In the MQTT Connector, when a message arrives on a subscribed topic, the connector typically invokes a message handler microflow and passes:
Topic (String)
Payload (String)
as input parameters.
So:
$Topic
contains the MQTT topic that received the message, e.g.
sensors/temperature
and
$Payload
contains the message body, e.g.
{"value":25.3}
Your log message:
topic {1} - message {2}
with parameters:
{1} = $Topic
{2} = $Payload
should write something like:
topic sensors/temperature - message {"value":25.3}
to the Mendix Console.
A few things to check:
MqttConnector.LogNode (or your custom log node) to Info or Trace in the Console.If you can share the Subscribe activity configuration (or the full MQTT microflow), I can tell exactly where $Topic and $Payload are being populated and why nothing is appearing in the console.