discover abstract method

ThingDiscovery discover({
  1. ThingFilter? thingFilter,
})

Discovers ThingDescriptions using the underlying platform configuration.

A thingFilter may be passed for filtering out TDs before they are processed. However, since the semantics of the ThingFilter are not well-defined in the Scripting API document, this parameter does not have an effect yet.

The ThingDiscovery object that is returned by this function implements the Stream interface, which makes it possible to listen for discovered ThingDescriptions or to iterate over the discovered results using the await for syntax. It also allows for stopping the Discovery process prematurely and for retrieving information about its current state (i.e., whether it is still ThingDiscovery.active).

Implementation

ThingDiscovery discover({
  ThingFilter? thingFilter,
});