-
Notifications
You must be signed in to change notification settings - Fork 2.1k
pkg/wakaama: add on off switch #21109
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
pkg/wakaama: add on off switch #21109
Conversation
3621c59
to
2254a35
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👁️ 👁️
Freeze is over so if anyone wants to pick this up... |
examples/lwm2m/lwm2m_cli.c
Outdated
return 1; | ||
} | ||
|
||
bool status = !strcmp(argv[2], "on"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be a tighter check for "off" than just anything except "on", I guess.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now the command explicitly checks for either "on"
or "off"
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
am I blind? It does not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added here? 77bac9c
cool, almost there! I think you can fix the last open issues and directly squash them so this PR is ready for merge. |
fb2eaad
to
a57d5cc
Compare
done! |
Thanks for the review! |
Contribution description
This adds a simple on/off switch object to the supported LwM2M objects: Object 3342. From the specs:
Testing procedure
Use the lwm2m example, the 'switch' can be controlled via shell.
Issues/PRs references
None