Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 | resource_len |
| 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. | |
| bool | always_publish:1 |
| 1 if resource should always be published in registration or registration update | |
| unsigned | publish_value:2 |
| 0 for non-publishing,1 if resource value to be published in registration message, 2 if resource value to be published in Base64 encoded format | |
Detailed Description
Defines dynamic parameters for the resource.
Definition at line 192 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 207 of file sn_nsdl_lib.h.
| bool always_publish |
1 if resource should always be published in registration or registration update
Definition at line 215 of file sn_nsdl_lib.h.
| bool auto_observable |
Is resource auto observable or not.
Definition at line 214 of file sn_nsdl_lib.h.
| uint16_t coap_content_type |
CoAP content type.
Definition at line 205 of file sn_nsdl_lib.h.
| bool free_on_delete |
1 if struct is dynamic allocted --> to be freed
Definition at line 212 of file sn_nsdl_lib.h.
| uint16_t msg_id |
Notification message id.
Definition at line 206 of file sn_nsdl_lib.h.
| bool observable |
Is resource observable or not.
Definition at line 213 of file sn_nsdl_lib.h.
| bool publish_uri |
1 if resource to be published to server
Definition at line 211 of file sn_nsdl_lib.h.
| unsigned publish_value |
0 for non-publishing,1 if resource value to be published in registration message, 2 if resource value to be published in Base64 encoded format
Definition at line 216 of file sn_nsdl_lib.h.
| unsigned registered |
Is resource registered or not.
Definition at line 210 of file sn_nsdl_lib.h.
| uint8_t* resource |
NULL if dynamic resource.
Definition at line 202 of file sn_nsdl_lib.h.
| uint16_t resource_len |
0 if dynamic resource, resource information in static resource
Definition at line 204 of file sn_nsdl_lib.h.
Generated on Tue Jul 12 2022 16:24:26 by
1.7.2