Hi Xu,
> But what I want is publisher decide who would receive the message. So it's
> totally different.
The principle isn't completely different, but I think you're
approaching it from the opposite direction. You seem to be thinking
along the lines of "as a publisher, how do I force clients to receive
this message?". MQTT takes the view if a subscriber wants information,
they will subscribe to the topics that will provide it for them and
the publisher will publish to that topic. If you don't trust your
subscribers to subscribe to the correct topics, you can't assume that
they will process your message anyway. If you do trust your clients to
subscribe to the correct topics, then there is no need to force
messages upon them.
Cheers,
Roger