IPWorks IoT 2020 Kotlin Edition

Questions / Feedback?

DiscoverRequest Event

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

Syntax

public open class DefaultMqttsnEventListener : MqttsnEventListener {
  ...
  public override fun discoverRequest(e: MqttsnDiscoverRequestEvent) {}
  ...
}

public class MqttsnDiscoverRequestEvent {
  val radius: Int
  var gatewayId: Int
  var gatewayAddress: String?
  var respond: Boolean
}

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.

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks IoT 2020 Kotlin Edition - Version 20.0 [Build 7941]