mirror of
https://gitlab.com/wirelos/sprocket-plugin-mqtt.git
synced 2025-12-14 13:51:27 +01:00
print remote topic
This commit is contained in:
@@ -55,8 +55,9 @@ void MqttPlugin::connect()
|
||||
void MqttPlugin::upstreamHandler(String topic, String msg)
|
||||
{
|
||||
// publish message on remote queue
|
||||
PRINT_MSG(Serial, "MQTT", String("publish remote: " + topic).c_str());
|
||||
client->publish((String(mqttConfig.outTopicRoot) + topic).c_str(), msg.c_str());
|
||||
String remoteTopic = String(mqttConfig.outTopicRoot) + topic;
|
||||
client->publish(remoteTopic.c_str(), msg.c_str());
|
||||
PRINT_MSG(Serial, "MQTT", String("publish remote: " + remoteTopic).c_str());
|
||||
}
|
||||
|
||||
void MqttPlugin::downstreamHandler(char *topic, uint8_t *payload, unsigned int length)
|
||||
|
||||
Reference in New Issue
Block a user