Is this method only suitable for the chat example? Or can this line be used anyway? This is permission for private messages, but it is not clear how to aim at the right client. How to publish a message to a specific client?
Example:
client.Publish2("NickCleent", CreateMesage, 0, False)
Mqtt it just is a messaging protocol, how to send message to a specific client it depends on how you design your chat room,if everyone has an unique ID, you can publish message using id as topic and the client subscirble it by id
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.