Lines Matching +full:resource +full:- +full:id
5 * SPDX-License-Identifier: Apache-2.0
16 static int large_get(struct coap_resource *resource, in large_get() argument
27 uint16_t id; in large_get() local
39 return -EINVAL; in large_get()
44 id = coap_header_get_id(request); in large_get()
48 LOG_INF("type: %u code %u id %u", type, code, id); in large_get()
53 COAP_RESPONSE_CODE_CONTENT, id); in large_get()
55 return -EINVAL; in large_get()
75 ctx.total_size - ctx.current); in large_get()
90 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in large_get()
95 static int large_update_put(struct coap_resource *resource, in large_update_put() argument
104 uint16_t id; in large_update_put() local
114 return -EINVAL; in large_update_put()
127 return -EINVAL; in large_update_put()
133 return -EINVAL; in large_update_put()
144 id = coap_header_get_id(request); in large_update_put()
148 LOG_INF("type: %u code %u id %u", type, code, id); in large_update_put()
170 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in large_update_put()
175 static int large_create_post(struct coap_resource *resource, in large_create_post() argument
185 uint16_t id; in large_create_post() local
194 return -EINVAL; in large_create_post()
207 return -EINVAL; in large_create_post()
213 return -EINVAL; in large_create_post()
218 id = coap_header_get_id(request); in large_create_post()
222 LOG_INF("type: %u code %u id %u", type, code, id); in large_create_post()
242 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in large_create_post()
254 static const char * const large_update_path[] = { "large-update", NULL };
261 static const char * const large_create_path[] = { "large-create", NULL };