Simple interface for Mbed Cloud Client
sn_grs.c File Reference
General resource server. More...
Go to the source code of this file.
Functions | |
int8_t | sn_nsdl_build_registration_body (struct nsdl_s *handle, sn_coap_hdr_s *message_ptr, uint8_t updating_registeration) |
To build GRS resources to registration message payload. | |
sn_nsdl_dynamic_resource_parameters_s * | sn_grs_search_resource (struct grs_s *handle, const char *path, uint8_t search_method) |
Searches given resource from linked list. |
Detailed Description
General resource server.
Definition in file sn_grs.c.
Function Documentation
sn_nsdl_dynamic_resource_parameters_s* sn_grs_search_resource | ( | struct grs_s * | handle, |
const char * | path, | ||
uint8_t | search_method | ||
) |
Searches given resource from linked list.
Search either precise path, or subresources, eg. dr/x -> returns dr/x/1, dr/x/2 etc...
- Parameters:
-
pathlen Length of the path to be search *path Pointer to the path string to be search search_method Search method, SEARCH or DELETE
- Returns:
- Pointer to the resource. If resource not found, return value is NULL
int8_t sn_nsdl_build_registration_body | ( | struct nsdl_s * | handle, |
sn_coap_hdr_s * | message_ptr, | ||
uint8_t | updating_registeration | ||
) |
Generated on Tue Jul 12 2022 19:01:38 by 1.7.2