Make the username and password params of CoAP client to optional in connection mode.