Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URI updates #421

Merged
merged 3 commits into from
Feb 19, 2019
Merged

URI updates #421

merged 3 commits into from
Feb 19, 2019

Commits on Feb 13, 2019

  1. Expand lwm2m_uri_t to have resourceInstanceId.

    This will be needed for many of the commands in the LWM2M 1.1 Device
    Managenent and Service Enablement Interface and Information Reporting
    Interface.
    
    Also prevents transactions from generating bad URI paths.
    
    Signed-off-by: Scott Bertin <sbertin@telular.com>
    sbertin-telular committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    281ec55 View commit details
    Browse the repository at this point in the history
  2. Make uri_toString and lwm2m_stringToUri proper inverses.

    The output of each is now valid as input to the other.
    
    Also adds a uri_depth_t of URI_DEPTH_NONE and uri_toString return the
    depth of the URI instead of one lower.
    
    Signed-off-by: Scott Bertin <sbertin@telular.com>
    sbertin-telular committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    a491fd3 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2019

  1. Remove flag from lwm2m_uri_t.

    IDs of LWM2M_MAX_ID now indicate an unset ID.
    Adds LWM2M_URI_RESET to properly initialize an lwm2m_uri_t.
    
    uri_decode changed to return the request type seperately. Pointer to uri
    to be set now passed in instead of allocated.
    
    discover_serialize and object_create changed to not modify the passed in
    uri.
    
    Additional validation of the created response.
    
    Remove isUri from bs_data_t.
    
    Signed-off-by: Scott Bertin <sbertin@telular.com>
    sbertin-telular committed Feb 14, 2019
    Configuration menu
    Copy the full SHA
    24c9568 View commit details
    Browse the repository at this point in the history