endpoint_setup is already declared in coap.h