Skip to content

Commit 086ad2c

Browse files
committed
chore: deprecate old discover method implementation
1 parent 86d18d3 commit 086ad2c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/src/scripting_api/wot.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,13 @@ abstract interface class WoT {
5252
/// using the `await for` syntax.
5353
/// It also allows for stopping the Discovery process prematurely and
5454
/// for retrieving information about its current state (i.e., whether it is
55-
/// still `active`).
55+
/// still [ThingDiscovery.active]).
56+
@Deprecated(
57+
'The discover method is curently in the process of being adjusted to the '
58+
'latest Scripting API version and is therefore subject to change. '
59+
'For direct and directory discovery, please refer to the '
60+
'requestThingDescription and exploreDirectory methods instead.',
61+
)
5662
ThingDiscovery discover(
5763
Uri url, {
5864
ThingFilter? thingFilter,

0 commit comments

Comments
 (0)