MQTT-SN gateway publish to a particular client on same topic subscribed by many clients

44 views
Skip to first unread message

Pavan Kumar

unread,
Nov 26, 2014, 12:54:12 AM11/26/14
to mq...@googlegroups.com
Hi,

There is a scenario where two Arduino Clients C1 and C2 (with xbee) have subscribed to MQTT-SN gateway on same topic lets say 'test'. Now on MQTT broker, some one published some message on topic "test" and this
will be received by both the clients C1 and C2 via MQTT-SN gateway.

Now in the same scenario, once the published message is received onto MQTT-SN gateway, is there a way to publish message only to a particular client (lets say C1).

Both C1 and C2 have subscribed on same topic but gateway needs to send information to a particular client only instead of publishing to all clients subscribed on that topic. Is there a way in MQTT-SN to publish
messages to a particular client only??

One way is to keep topics separate for C1 and C2. But by keeping topic same, can gateway publish message to a specific client only??

Please let me know

Regards,
Pavan
Reply all
Reply to author
Forward
0 new messages