knolleary / pubsubclient

A client library for the Arduino Ethernet Shield that provides support for MQTT.
http://pubsubclient.knolleary.net/
MIT License
3.78k stars 1.46k forks source link

stupid question - no issue #1009

Closed hoffmakl1961 closed 1 year ago

hoffmakl1961 commented 1 year ago

Is it possible to define a 2nd publish topic to the same broker. Something like this: client.publish(TH_Living_outTopic1, MQTTmsg); // send msg to mqtt server and another client.publish(TH_Wohnen_outTopic2, MQTTstring); // send msg to mqtt server

The messages are to be sent to a node red v2.1.0 system.

hoffmakl1961 commented 1 year ago

Was able to test it. Yes it works.