knolleary / pubsubclient

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

How to construct my message ? #960

Closed acca84 closed 2 years ago

acca84 commented 2 years ago

Hello, i'd like to send a message to my MQTT broker, this message is composed by static text and a variable name, like :

"Hello, this is NAME"

where NAME should come from a char array (char* NAMES[10] contains 10 names)

Can someone tell me how to concatenate my text in order to construct my message please ?