joey shelton / LED_Demo

Dependencies:   MAX44000 PWM_Tone_Library nexpaq_mdk

Fork of LED_Demo by Maxim nexpaq

Embed: (wiki syntax)

« Back to documentation index

sn_grs.c File Reference

sn_grs.c File Reference

General resource server. More...

Go to the source code of this file.

Functions

static uint8_t * sn_grs_convert_uri (uint16_t *uri_len, uint8_t *uri_ptr)
 Removes '/' from the beginning and from the end of uri string.
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.

Detailed Description

General resource server.

Definition in file sn_grs.c.


Function Documentation

static uint8_t * sn_grs_convert_uri ( uint16_t *  uri_len,
uint8_t *  uri_ptr 
) [static]

Removes '/' from the beginning and from the end of uri string.

Parameters:
*uri_lenPointer to the length of the path string
*uri_ptrPointer to the path string
Returns:
start pointer of the uri

Definition at line 937 of file sn_grs.c.

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.

Parameters:
*handlePointer to nsdl-library handle
*message_ptrPointer to CoAP message header
Returns:
SN_NSDL_SUCCESS = 0, Failed = -1

Definition at line 1236 of file sn_nsdl.c.