update the iot coap