CoapServer constructor

CoapServer([
  1. CoapConfig? coapConfig
])

Creates a new CoapServer which can be configured using a CoapConfig.

Implementation

CoapServer([CoapConfig? coapConfig])
    : port = coapConfig?.port ?? 5683,
      preferredBlockSize = coapConfig?.blocksize;