Skip to content

Commit

Permalink
docs: update example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Mar 21, 2022
1 parent 2f6acd1 commit b85ce9c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,9 @@ To do so, a Thing Description JSON string is first parsed and turned into a
`Servient` with CoAP support.

```dart
import 'dart:async';
import 'package:dart_wot/dart_wot.dart';
FutureOr<void> main(List<String> args) async {
Future<void> main(List<String> args) async {
final CoapClientFactory coapClientFactory = CoapClientFactory(null);
final servient = Servient()..addClientFactory(coapClientFactory);
final wot = await servient.start();
Expand Down

0 comments on commit b85ce9c

Please sign in to comment.