Skip to content

Commit

Permalink
fixup! feat!: simplify usage of clientFactories
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Dec 11, 2023
1 parent 62c9bf6 commit f0f00aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ To do so, a Thing Description JSON string is first parsed and turned into a
import 'package:dart_wot/dart_wot.dart';
Future<void> main(List<String> args) async {
final CoapClientFactory coapClientFactory = CoapClientFactory(null);
final servient = Servient()..addClientFactory(coapClientFactory);
final CoapClientFactory coapClientFactory = CoapClientFactory();
final servient = Servient(
protocolClients: [coapClientFactory]
);
final wot = await servient.start();
final thingDescriptionJson = '''
Expand Down

0 comments on commit f0f00aa

Please sign in to comment.