discover abstract method
- @experimental List<DiscoveryConfiguration> discoveryConfigurations, {
- ThingFilter? thingFilter,
Discovers ThingDescriptions based on the provided
discoveryConfigurations.
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).
The shape of the discover API is still experimental and will most likely
change in the future.
Implementation
ThingDiscovery discover(
  @experimental List<DiscoveryConfiguration> discoveryConfigurations, {
  ThingFilter? thingFilter,
});