Hello,
I'm currently exploring BLE using zephyr and faced some issues.
1. id like to restart advertising after disconnecting from a device. I tried different approaches like stopping advertising and starting it again. stopping advertising, disabling bluetooth, enabling and starting it again but it always results in the same error. I added some error logs for debugging. I always get error code -12 but don't know how to resolve it.
Disconnected, reason 0x13 - BLE disconnected - Stopped BLE advertising - Uninitialized BLE - Initialized BLE - Advertising failed to start (err -12)
I also tried to restart the device, but the linker fails with an undefined function for
sys_reboot(SYS_REBOOT_WARM);
so I guess I probably miss some definition in the pros.conf
thank you
2. how do I max the ble data rate? do I just have to add some configs in the pros.conf file or do I have to call some functions from the stack additionally? (I'm used to the nordic sdk, but I'm currently learning zephyr and try to get similar behavior)
- I'd like to limit the connection interval
- increase to the max mtu and datalength
- set to 2m phy