File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ Future<BasicCredentials?> basicCredentialsCallback(
2323}
2424
2525Future <void > main (List <String > args) async {
26- final CoapClientFactory coapClientFactory = CoapClientFactory ();
27- final HttpClientFactory httpClientFactory =
26+ final coapClientFactory = CoapClientFactory ();
27+ final httpClientFactory =
2828 HttpClientFactory (basicCredentialsCallback: basicCredentialsCallback);
29- final MqttClientFactory mqttClientFactory = MqttClientFactory ();
29+ final mqttClientFactory = MqttClientFactory ();
3030
3131 final servient = Servient (
3232 clientFactories: [
Original file line number Diff line number Diff line change @@ -68,8 +68,9 @@ Future<BasicCredentials?> basicCredentialsCallback(
6868/// Illustrates the usage of both the basic and the automatic security scheme,
6969/// with a server supporting basic authentication.
7070Future <void > main (List <String > args) async {
71- final HttpClientFactory httpClientFactory =
72- HttpClientFactory (basicCredentialsCallback: basicCredentialsCallback);
71+ final httpClientFactory = HttpClientFactory (
72+ basicCredentialsCallback: basicCredentialsCallback,
73+ );
7374 final servient = Servient (
7475 clientFactories: [
7576 httpClientFactory,
You can’t perform that action at this time.
0 commit comments