I don’t think there’s a sample that shows both roles, but combining one of the peripheral samples and a central one should be very straightforward.
Please consider contributing such a sample if you put one together that can serve as a starting point for others.
From: users@... <users@...> On Behalf Of nrjn nrjn via Lists.Zephyrproject.Org
Sent: 18 July 2019 01:02
Subject: [Zephyr-users] BLE Central and peripheral role #bluetooth #ble
Is there a sample code or documentation explaining how to use a BLE device in both central and peripheral roles concurrently?
I have a couple of environmental sensors (BLE peripherals) talking to a hub (BLE Central).
I want to control the hub and get data out of the hub through a smartphone.
So, I want the hub to function as both central and peripheral.