changed to use the coap-js-client.