-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
mgmt: hawkbit: define attributes in the user application #69293
mgmt: hawkbit: define attributes in the user application #69293
Conversation
ping |
ping @ycsin |
327ed5d
to
0ea9548
Compare
just a rebase to the current main |
0ea9548
to
c44fa72
Compare
I haven't really looked at this in details yet but it seems to expose a little too much to the public than I would like, i.e. all the structs and stuff that used to be internal. I wonder if it is possible to just have a mechanism for hawkBit to get the formatted json of the attributes from the app in the form of a buffer and sent it to the server? |
they are needed if the user wants to define its own config callback. but maybe they could be put in a seperate header file and not in
It might be, but then we can't use the json library to encode |
c44fa72
to
3752c8d
Compare
@ycsin with a change of the json lib it is possible |
8a86a83
to
c5c25fb
Compare
e2c94f4
to
54c8786
Compare
0eaadb1
to
0203fab
Compare
This problem is that the device attributes are only send to the server if the server requests it. This normally only happens once. the hawkBit server will only request it again, if you go in the user interface and click there 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 patch works - Have you considered doing this kind of one time configurations during hawkbit_init
by extending it to accept an config struct? The same idea can also applies to #68806
I would prefer to not do it that way, as most subsystems in zephyr are also using this separate approach when it comes to setting callbacks. |
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.
The doc can use some improvements, LGTM in general
92f5ed8
to
9bbb045
Compare
9bbb045
to
9264d08
Compare
Allows the attributes to be defined in the user application by using a callback function. Signed-off-by: Fin Maaß <[email protected]>
Extend sample for the custom attributes Signed-off-by: Fin Maaß <[email protected]>
9264d08
to
5dc9f78
Compare
rebased to resolve conflicts |
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.
Re-ack
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.
LGTM
Attributes can now be defined in the user application by the use of a callback function.
Resolves: #37640