MQTT Subscribe message content

Hi,
I am trying to read the "Client. subscribe("Topic B") and want to publish the content in Topic B to Topic A. I found that client.subscribe is bool function . How we can access the message in it.Can anyone guide me in this regards?
I am trying with

`int value= client.subscribe("Topic B");

client.publish("Topic A", value);`

The publish output is 1 no matter what the content is in the Topic A
Thanks

A post was merged into an existing topic: MQTT Subscribe issues

Do not double post the same question (even when worded slightly different).
I moved this post to your other thread where you already got an answer.

Double posting clutters the forum, wastes time for you and more importantly the community.