-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
samples: mesh: nrf52: improved coding style, way to save default & target values on flash #21014
Conversation
All checks are passing now. Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages. |
@cvinayak @carlescufi Are you able to connect to any Bluetooth Zephyr App over GATT (in case of any nRF52 board running latest master branch) ? |
Please elaborate on your observations. We have been lately stress testing peripheral and central applications, and fixes been upstreamed, hence I can state that we are able to connect applications over GATT.
…-Vinayak
From: vikrant8051 <[email protected]>
Sent: 28 November 2019 04:56
To: zephyrproject-rtos/zephyr <[email protected]>
Cc: Chettimada, Vinayak Kariappa <[email protected]>; Mention <[email protected]>
Subject: Re: [zephyrproject-rtos/zephyr] samples: mesh: nrf52: improved coding style, way to save default & target values on flash (#21014)
@cvinayak<https://github.com/cvinayak> @carlescufi<https://github.com/carlescufi> Are you able to connect to any Bluetooth Zephyr App over GATT (in case of any nRF52 board running latest master branch) ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#21014?email_source=notifications&email_token=ABQOOQGQIO2EVO3XDMFANWLQV46LJA5CNFSM4JR5MV7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFLLSEY#issuecomment-559331603>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABQOOQERB6NJEITV2OEFPJ3QV46LJANCNFSM4JR5MV7A>.
|
@cvinayak Let me test it again. Thank you for your reply. |
@cvinayak |
Thanks for testing. Please log a github issue and assign to me if you face issues in future related to controller. When assigned, its more visible to me on github. |
Please don't merge. Small changes have to be done by adding new commit |
@Vikrant8051 I couldn't merge even if I wanted to since the project is in the stabilisation phase for Zephyr 2.2, i.e. only PRs that fix important bugs are allowed. |
@Vikrant8051 @jhedberg @trond-snekvik @carlescufi |
@joerchan It is due to rebase issue, system automatically send review request to many reviewers. |
I think that's a bit beside the point @joerchan was trying to make. I've also had the same thought many times. Samples are supposed to be fairly small and static, i.e. they shouldn't need much updating. This sample has had numerous 1000+ line PRs since it was created, and the sample itself is rather huge. So I do think it's worth considering if it'd make sense to host it in an independent repository. |
After merging this PR, App will be in most robust state. |
@Vikrant8051 a PR was recently merged that did the following path rename: |
Alright. And then it should remain? Otherwise I think we should consider extracting it out. |
Removed redundant code, unnecessary blank lines & comments. Signed-off-by: Vikrant More <[email protected]>
Implement thing based on single struct light_ctl_state pointer in entire Application. Signed-off-by: Vikrant More <[email protected]>
Rename attributes in enum state_binding. Signed-off-by: Vikrant More <[email protected]>
Separately saved default & last target values of lightness, temperature & delta_uv on flash (using settings layer). Signed-off-by: Vikrant More <[email protected]>
Added support of constrain_temperature() function. Used constrain_lightness() & constrain_temperature() whereever possible. Signed-off-by: Vikrant More <[email protected]>
Added sepate function update_vnd_led_gpio(). Signed-off-by: Vikrant More <[email protected]>
Corrected sequence of execution of get & publish messages. Signed-off-by: Vikrant More <[email protected]>
Removed global variable 'default_tt' & code depend on it which is redundant as per latest implementation. Signed-off-by: Vikrant More <[email protected]>
Added some more macros support. Signed-off-by: Vikrant More <[email protected]>
Changes in MOVE message handler are as per Mesh Model Specification which says: "Upon receiving a Generic Move Set message, the Generic Level Server shall respond with a Generic Level Status message. The target Generic Level state is the upper limit of the Generic Level state when the transition speed is positive, or the lower limit of the Generic Level state when the transition speed is negative." Signed-off-by: Vikrant More <[email protected]>
Added some preprocessor directive so that code get compile for some more nRF52 boards which has only one LED & one button. Signed-off-by: Vikrant More <[email protected]>
@jhedberg Done !! |
in entire Application.
temperature & delta_uv on flash (using settings layer).
Signed-off-by: Vikrant More [email protected]