Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Merge memory opt to master #116

Merged
merged 26 commits into from
Jan 18, 2017
Merged

Merge memory opt to master #116

merged 26 commits into from
Jan 18, 2017

Conversation

TeroJaasko
Copy link
Contributor

No description provided.

Antti Yli-Tokola and others added 26 commits December 14, 2016 12:32
Fix static resource handling(PUT,POST,DELETE)
Remove separate resource_type_len field from
sn_nsdl_static_resource_parameters_s. Make the resource_type_ptr
to be "char*" instead of "uint8_t*" to make it clearer that
the data is a zero temrinated string from now on.

This saves some memory and makes it easier to fill this structure
from client side. We're exposing API from C++ side for application
to optionally provide this struct as pre-filled const static data
from ROM.
There is no need to have separate interface_description_len field,
if the string is zero terminated. This saves some memory and eases
filling the structure at application side. While here, make the
interface_description_ptr to be "char*" instead of "uint8_t*" to
document the data type.
Removal of previous field left variables not naturally aligned,
so we need to reorganize them to avoid padding.
Use unsigned int for bitfields for C99 compliance
… message

Reset message is now passed into application and mbed-client will use the token to match request to right object.

With this change we get rid of unnecessary uri_path() API in mbed-client side.
Revert 3b172c6 Notify client when observation is cancelled with RESET…
* Assert not needed in sn_nsdl_build_registration_body since params are checked already when adding resource to list.
build_message_options_uri_path unit tests updated due to commit 91af549
Fix possible null pointer access in assert calls.
Update nsdl and grs unit tests to work with memory optimization changes
Remove assert() for now, let's bring it back later when we
have better platform and test framework support for it.
Remove assert macro usage due to comments in review
Remove unnecessary if clause in sn_grs_mark_resources_as_registered
The sn_grs_put_resource() needs a counterpart for removing
the structure from the list. This makes it possible to manage
the lifetime of nsdl structures from client code.
nsdl: add sn_grs_pop_resource function
@TeroJaasko TeroJaasko merged commit 456f0f7 into master Jan 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants