pkg/wakaama: add on off switch#21109
Conversation
3621c59 to
2254a35
Compare
|
Freeze is over so if anyone wants to pick this up... |
| return 1; | ||
| } | ||
|
|
||
| bool status = !strcmp(argv[2], "on"); |
There was a problem hiding this comment.
This could be a tighter check for "off" than just anything except "on", I guess.
There was a problem hiding this comment.
Now the command explicitly checks for either "on" or "off".
There was a problem hiding this comment.
am I blind? It does not?
|
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