performMqttDiscovery abstract method

  1. @experimental
Stream<Content> performMqttDiscovery(
  1. Uri brokerUri, {
  2. required String discoveryTopic,
  3. required String expectedContentType,
  4. required Duration discoveryTimeout,
})

Performs discovery of Thing Descriptions using the MQTT protocol via the given brokerUri.

By default, the discoveryTopic wot/td/# will be used as discussed in this issue.

Implementation

@experimental
Stream<Content> performMqttDiscovery(
  Uri brokerUri, {
  required String discoveryTopic,
  required String expectedContentType,
  required Duration discoveryTimeout,
});