CoapConfig constructor

const CoapConfig({
  1. int port = 5683,
  2. int securePort = 5684,
  3. int? blocksize,
  4. bool allowMulticastDiscovery = false,
  5. Duration multicastDiscoveryTimeout = const Duration(minutes: 60),
  6. String? dtlsCiphers,
  7. List<Uint8List> rootCertificates = const [],
  8. bool dtlsWithTrustedRoots = true,
  9. bool dtlsVerify = true,
})

Creates a new CoapConfig object.

Implementation

const CoapConfig({
  this.port = 5683,
  this.securePort = 5684,
  this.blocksize,
  this.allowMulticastDiscovery = false,
  this.multicastDiscoveryTimeout = const Duration(minutes: 60),
  this.dtlsCiphers,
  this.rootCertificates = const [],
  this.dtlsWithTrustedRoots = true,
  this.dtlsVerify = true,
});