-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: Bluetooth: Checking return value of functions #16807
Conversation
ca4028d
to
02f3623
Compare
Test specificationCI/Jenkins/NRF
CI/Jenkins/integration
Detailed information of selected test modules Note: This message is automatically posted and updated by the CI |
5e42645
to
1c30d74
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.
LGTM
bt_nus_subscribe_receive(nus); | ||
err = bt_nus_handles_assign(dm, nus); | ||
if (err) { | ||
LOG_INF("bt_nus_handles_assign failed with errorcode %i", err); |
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.
LOG_INF("bt_nus_handles_assign failed with errorcode %i", err); | |
LOG_INF("bt_nus_handles_assign failed (err %d)", err); |
|
||
err = bt_nus_subscribe_receive(nus); | ||
if (err) { | ||
LOG_INF("bt_nus_subscribe_receive failed with errorcode %i", err); |
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.
LOG_INF("bt_nus_subscribe_receive failed with errorcode %i", err); | |
LOG_INF("bt_nus_subscribe_receive failed (err %d)", err); |
Just for cohesion with the rest of sample logs
Without this, an assert in gatt.c:5350 could happen. It happened when the link got disconnected during service discovery procedure. Signed-off-by: Martin Tverdal <[email protected]>
1c30d74
to
98b5dd7
Compare
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 98b5dd71f840963d6b979b2b14e8413d82082ee4 more detailssdk-nrf:
Github labels
List of changed files detected by CI (1)
Outputs:ToolchainVersion: 3dd8985b56 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
This pull request has been marked as stale because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 7 days. Note, that you can always re-open a closed pull request at any time. |
Without this, an assert in gatt.c:5350 could happen, when bt_nus_subscribe_receive called bt_gatt_subscribe. It happened when the link got disconnected during
service discovery procedure.
I was debugging something else, and I simulated very bad rf-conditions to trigger this assert.
Callstack when assert triggered
