diff --git a/README.md b/README.md index 1816a4e6..2066c035 100644 --- a/README.md +++ b/README.md @@ -46,8 +46,8 @@ Below you can find a basic example for incrementing and reading the value of a counter Thing, which is part of the [Thingweb Online Things](https://www.thingweb.io/services). -In the example, we first create a WoT runtime using a `Servient` with CoAP -support. +In the example, we first create a WoT runtime using a `Servient` with CoAP and +HTTP support. With the runtime, we then retrieve a TD (using the `requestThingDescription()` method) and consume it (using the `consume()` method), creating a `ConsumedThing` object, @@ -56,12 +56,14 @@ Afterward, the actual interactions with the counter are performed by calling the ```dart import "package:dart_wot/binding_coap.dart"; +import "package:dart_wot/binding_http.dart"; import "package:dart_wot/core.dart"; Future main(List args) async { final servient = Servient( clientFactories: [ CoapClientFactory(), + HttpClientFactory(), ], ); final wot = await servient.start(); diff --git a/example/example.dart b/example/example.dart index 94bc1773..ededc6cc 100644 --- a/example/example.dart +++ b/example/example.dart @@ -7,12 +7,14 @@ // ignore_for_file: avoid_print import "package:dart_wot/binding_coap.dart"; +import "package:dart_wot/binding_http.dart"; import "package:dart_wot/core.dart"; Future main(List args) async { final servient = Servient( clientFactories: [ CoapClientFactory(), + HttpClientFactory(), ], ); final wot = await servient.start();