DiscoverRequest Event
Fired when the component receives a SEARCHGW packet from another client.
Syntax
public class DefaultMqttsnEventListener implements MqttsnEventListener { ... public void discoverRequest(MqttsnDiscoverRequestEvent e) {} ... } public class MqttsnDiscoverRequestEvent { public int radius; public int gatewayId; public String gatewayAddress; public boolean 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 component will respond with a GWINFO packet.
This functionality is not yet implemented.