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

Add SenML JSON support #428

Merged
merged 2 commits into from Feb 21, 2019
Merged

Conversation

sbertin-telular
Copy link
Contributor

Also updates existing JSON support to share common functions with SenML JSON, handle objLink, and escapes in strings.

The media type replaces supportJSON in lwm2m_client_t to allow for TLV,
JSON, or SenML JSON. Easily extended for SenML CBOR and others in the
future.

const added to some pointer arguments where functions don't modify what
is pointed to.

Added base64 decoding to support opaque data types.

Added functions for going between text and objLink.

Signed-off-by: Scott Bertin <sbertin@telular.com>
Additional improvements included:
 * objLink serialize/parse
 * escaping in JSON strings

Signed-off-by: Scott Bertin <sbertin@telular.com>
@dnav dnav merged commit 31d64c0 into eclipse-wakaama:master Feb 21, 2019
@sbertin-telular sbertin-telular deleted the senml_json branch February 21, 2019 12:24
parmi93 pushed a commit to parmi93/wakaama that referenced this pull request May 31, 2023
Add SenML JSON support

Fix memory leak if server does not respond to registration message or if client (Wakaama) terminates before server responds to registration message.

registration_data_t is not freed if the server does not respond to the connection message or the user decides to quit the (Wakaama) client before the server respond.
See: eclipse-wakaama#693
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants