Lines Matching +full:- +full:r
5 * SPDX-License-Identifier: Apache-2.0
31 int r; in send_notification_packet() local
43 r = coap_packet_init(&response, data, sizeof(data), in send_notification_packet()
46 if (r < 0) { in send_notification_packet()
47 return r; in send_notification_packet()
51 r = coap_append_option_int(&response, COAP_OPTION_OBSERVE, age); in send_notification_packet()
52 if (r < 0) { in send_notification_packet()
53 return r; in send_notification_packet()
57 r = coap_append_option_int(&response, COAP_OPTION_CONTENT_FORMAT, in send_notification_packet()
59 if (r < 0) { in send_notification_packet()
60 return r; in send_notification_packet()
63 r = coap_packet_append_payload_marker(&response); in send_notification_packet()
64 if (r < 0) { in send_notification_packet()
65 return r; in send_notification_packet()
68 /* The response that coap-client expects */ in send_notification_packet()
69 r = snprintk((char *) payload, sizeof(payload), in send_notification_packet()
71 if (r < 0) { in send_notification_packet()
72 return r; in send_notification_packet()
75 r = coap_packet_append_payload(&response, (uint8_t *)payload, in send_notification_packet()
77 if (r < 0) { in send_notification_packet()
78 return r; in send_notification_packet()
83 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in send_notification_packet()
85 return r; in send_notification_packet()
97 int r; in obs_get() local
99 r = coap_resource_parse_observe(resource, request, addr); in obs_get()
111 r == 0 ? resource->age : 0, in obs_get()
119 &observer->addr, in obs_notify()
120 sizeof(observer->addr), in obs_notify()
121 resource->age, 0, in obs_notify()
122 observer->token, observer->tkl, false); in obs_notify()