on_discover_request Event
Fired when the class receives a SEARCHGW packet from another client.
Syntax
class MQTTSNDiscoverRequestEventParams(object): @property def radius() -> int: ... @property def gateway_id() -> int: ... @gateway_id.setter def gateway_id(value) -> None: ... @property def gateway_address() -> str: ... @gateway_address.setter def gateway_address(value) -> None: ... @property def respond() -> bool: ... @respond.setter def respond(value) -> None: ... # In class MQTTSN: @property def on_discover_request() -> Callable[[MQTTSNDiscoverRequestEventParams], None]: ... @on_discover_request.setter def on_discover_request(event_hook: Callable[[MQTTSNDiscoverRequestEventParams], None]) -> None: ...
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.