Lines Matching full:request
132 struct coap_packet request; in send_simple_coap_request() local
142 r = coap_packet_init(&request, data, MAX_COAP_MSG_LEN, in send_simple_coap_request()
152 r = coap_packet_append_option(&request, COAP_OPTION_URI_PATH, in send_simple_coap_request()
155 LOG_ERR("Unable add option to request"); in send_simple_coap_request()
167 r = coap_packet_append_payload_marker(&request); in send_simple_coap_request()
173 r = coap_packet_append_payload(&request, (uint8_t *)payload, in send_simple_coap_request()
186 net_hexdump("Request", request.data, request.offset); in send_simple_coap_request()
188 r = send(sock, request.data, request.offset, 0); in send_simple_coap_request()
314 struct coap_packet request; in send_large_coap_request() local
329 r = coap_packet_init(&request, data, MAX_COAP_MSG_LEN, in send_large_coap_request()
339 r = coap_packet_append_option(&request, COAP_OPTION_URI_PATH, in send_large_coap_request()
342 LOG_ERR("Unable add option to request"); in send_large_coap_request()
347 r = coap_append_block2_option(&request, &blk_ctx); in send_large_coap_request()
353 net_hexdump("Request", request.data, request.offset); in send_large_coap_request()
355 r = send(sock, request.data, request.offset, 0); in send_large_coap_request()
393 struct coap_packet request; in send_obs_reply_ack() local
402 r = coap_packet_init(&request, data, MAX_COAP_MSG_LEN, in send_obs_reply_ack()
409 net_hexdump("ACK", request.data, request.offset); in send_obs_reply_ack()
411 r = send(sock, request.data, request.offset, 0); in send_obs_reply_ack()
491 struct coap_packet request; in send_obs_coap_request() local
501 r = coap_packet_init(&request, data, MAX_COAP_MSG_LEN, in send_obs_coap_request()
510 r = coap_append_option_int(&request, COAP_OPTION_OBSERVE, 0); in send_obs_coap_request()
517 r = coap_packet_append_option(&request, COAP_OPTION_URI_PATH, in send_obs_coap_request()
520 LOG_ERR("Unable add option to request"); in send_obs_coap_request()
525 net_hexdump("Request", request.data, request.offset); in send_obs_coap_request()
527 coap_reply_init(reply, &request); in send_obs_coap_request()
531 r = send(sock, request.data, request.offset, 0); in send_obs_coap_request()
541 struct coap_packet request; in send_obs_reset_coap_request() local
551 r = coap_packet_init(&request, data, MAX_COAP_MSG_LEN, in send_obs_reset_coap_request()
560 r = coap_append_option_int(&request, COAP_OPTION_OBSERVE, 1); in send_obs_reset_coap_request()
567 r = coap_packet_append_option(&request, COAP_OPTION_URI_PATH, in send_obs_reset_coap_request()
570 LOG_ERR("Unable add option to request"); in send_obs_reset_coap_request()
575 net_hexdump("Request", request.data, request.offset); in send_obs_reset_coap_request()
577 r = send(sock, request.data, request.offset, 0); in send_obs_reset_coap_request()