DiscoverRequest Event

Fired when the class receives a SEARCHGW packet from another client.

Syntax

ANSI (Cross Platform)
virtual int FireDiscoverRequest(MQTTSNDiscoverRequestEventParams *e);
typedef struct {
int Radius;
int GatewayId;
char *GatewayAddress;
int Respond; int reserved; } MQTTSNDiscoverRequestEventParams; Unicode (Windows) virtual INT FireDiscoverRequest(MQTTSNDiscoverRequestEventParams *e);
typedef struct {
INT Radius;
INT GatewayId;
LPWSTR GatewayAddress;
BOOL Respond; INT reserved; } MQTTSNDiscoverRequestEventParams;
- (void)onDiscoverRequest:(int)radius :(int*)gatewayId :(NSString**)gatewayAddress :(int*)respond;
#define EID_MQTTSN_DISCOVERREQUEST 3

virtual INT IPWORKSIOT_CALL FireDiscoverRequest(INT &iRadius, INT &iGatewayId, LPSTR &lpszGatewayAddress, BOOL &bRespond);

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.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks IoT 2020 C++ Edition - Version 20.0 [Build 8265]