DiscoverRequest Event
Fired when the class receives a SEARCHGW packet from another client.
Syntax
class MQTTSNDiscoverRequestEventParams { public: int Radius(); int GatewayId(); void SetGatewayId(int iGatewayId); const QString &GatewayAddress(); void SetGatewayAddress(const QString &qsGatewayAddress); bool Respond(); void SetRespond(bool bRespond); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void DiscoverRequest(MQTTSNDiscoverRequestEventParams *e);
// Or, subclass MQTTSN and override this emitter function. virtual int FireDiscoverRequest(MQTTSNDiscoverRequestEventParams *e) {...}
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.