MQTT-SN Aggregating Gateway

110 views
Skip to first unread message

Filipe Nicoli

unread,
Jul 6, 2016, 10:09:42 AM7/6/16
to MQTT
The MQTT-SN specs (v1.2) is quite short on the matter of gateways and encapsulation.

I have to implement a gateway for a WSN and I understand how a transparent gateway could work (with one connection per node).

However, how would an aggregating gateway work with the broker?
I can only think of encapsulated messages.
Is this approach correct?

Tomoaki Yamaguchi

unread,
Jul 7, 2016, 7:57:36 AM7/7/16
to mq...@googlegroups.com

Hi,
My over view of Aggregate gateway are ;
1. Gateway aggregate clients.
2. Gateway connects to Broker as a client with gateway name as Id and gateway's willmessage.
3. When gateway receives Connect message from clients, it just maintains the client list with out sending connect message to the broker.
4. There for, Broker handles clients connecting via gateway as one client.
5. Gateway sends PINGREQ insted of clients.
6. Gateway delivers PUBLISHed msgs to clients. Gateway keeps subscribed topic and clients corresponding table to do this. When some client Subscribe the same topics as already subscribed, gateway maintain the table without sending SUBSCRIBE msg to the broker.

Reply all
Reply to author
Forward
0 new messages