Lines Matching full:resource
71 The following is an example of a CoAP resource registered with our service:
77 static int my_get(struct coap_resource *resource, struct coap_packet *request,
106 return coap_resource_send(resource, &response, addr, addr_len, NULL);
109 static int my_put(struct coap_resource *resource, struct coap_packet *request,
127 As demonstrated in the example above, a CoAP resource handler can return response codes to let
145 static int send_temperature(struct coap_resource *resource,
187 return coap_resource_send(resource, &response, addr, addr_len, NULL);
190 static int temp_get(struct coap_resource *resource, struct coap_packet *request,
199 r = coap_resource_parse_observe(resource, request, addr);
204 return send_temperature(resource, addr, addr_len, r == 0 ? resource->age : 0,
208 static void temp_notify(struct coap_resource *resource, struct coap_observer *observer)
210 send_temperature(resource, &observer->addr, sizeof(observer->addr), resource->age, 0,