Enabling BT_CENTRAL breaks MESH advertising #44913
Labels
area: Bluetooth Mesh
area: Bluetooth
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Describe the bug
I have an application scenario where I'm creating a MESH Gateway. This will connect to LE devices, but also be part of a MESH in a particular location. I had a working MESH sample, I then added a pre-existing BLE scanning API to it and then MESH advertising post provisioning failed. I stripped back all the changes until I now find that a single change in the config, not even including any additional code, breaks MESH advertising. This change is CONFIG_BT_CENTRAL=y.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect that enabling BT_CENTRAL on its own does not break MESH advertising unless I deliberately (and foolishly) keep another connection open in my application outside of the MESH library. Ideally, the MESH library would proactively close any connections preventing it from advertising. (I have max connections set higher than 1)
Impact
A showstopper for my use case unfortunately as I need the central role and not the observer role so I can connect to nearby Herald LE-only apps. I'm building a Smart Hospitals app for Herald, a project within Linux Foundation Public Health.
I cannot determine the cause of the issue from logging. I shall try reading through the mesh c files for any changes that occur due to BT_CENTRAL being defined tomorrow. Any suggestions would be very grateful.
Logs and console output
Here are some RTT logs
Environment (please complete the following information):
Additional context
BT_CENTRAL setting merged in from /config/receiver.conf in the CMakeLists.txt file for the relay app.
App is based on the light server sample.
The text was updated successfully, but these errors were encountered: