Toyomasa Watarai / Mbed OS Mbed-example-WS-W27

Dependencies:   MMA7660 LM75B

Embed: (wiki syntax)

« Back to documentation index

sn_nsdl_resource_parameters_ Struct Reference

sn_nsdl_resource_parameters_ Struct Reference

Defines dynamic parameters for the resource. More...

#include <sn_nsdl_lib.h>

Data Fields

uint8_t * resource
 NULL if dynamic resource.
uint16_t resourcelen
 0 if dynamic resource, resource information in static resource
uint16_t coap_content_type
 CoAP content type.
uint16_t msg_id
 Notification message id.
unsigned access:4
 Allowed operation mode, GET, PUT, etc, TODO! This should be in static struct but current mbed-client implementation requires this to be changed at runtime.
unsigned registered:2
 Is resource registered or not.
bool publish_uri:1
 1 if resource to be published to server
bool free_on_delete:1
 1 if struct is dynamic allocted --> to be freed
bool observable:1
 Is resource observable or not.
bool auto_observable:1
 Is resource auto observable or not.
NoticationDeliveryStatus notification_status:3
 Notification delivery status.

Detailed Description

Defines dynamic parameters for the resource.

Definition at line 212 of file sn_nsdl_lib.h.


Field Documentation

unsigned access

Allowed operation mode, GET, PUT, etc, TODO! This should be in static struct but current mbed-client implementation requires this to be changed at runtime.

Definition at line 227 of file sn_nsdl_lib.h.

Is resource auto observable or not.

Definition at line 234 of file sn_nsdl_lib.h.

CoAP content type.

Definition at line 225 of file sn_nsdl_lib.h.

1 if struct is dynamic allocted --> to be freed

Definition at line 232 of file sn_nsdl_lib.h.

uint16_t msg_id

Notification message id.

Definition at line 226 of file sn_nsdl_lib.h.

Notification delivery status.

Definition at line 235 of file sn_nsdl_lib.h.

bool observable

Is resource observable or not.

Definition at line 233 of file sn_nsdl_lib.h.

1 if resource to be published to server

Definition at line 231 of file sn_nsdl_lib.h.

unsigned registered

Is resource registered or not.

Definition at line 230 of file sn_nsdl_lib.h.

uint8_t* resource

NULL if dynamic resource.

Definition at line 222 of file sn_nsdl_lib.h.

uint16_t resourcelen

0 if dynamic resource, resource information in static resource

Definition at line 224 of file sn_nsdl_lib.h.