DiscoverRequest Event
Fired when the class receives a SEARCHGW packet from another client.
Syntax
mqttsn.on('DiscoverRequest', [callback])
Callback
The 'callback' is called when the 'DiscoverRequest' event is emited.
function(e){ }
The argument 'e' has the following properties:
e.radius e.gatewayId e.gatewayAddress e.respond
Remarks
This event allows the client to process the received gateway info and decide whether or not to respond to the search request.
If Respond is set to True, the class will respond with a GWINFO packet.
This functionality is not yet implemented.