Hi Dialog,
If I compile the proximity reporter example with the define BLE_CONNECTION_MAX_USER set on 2 should the example than allow 2 bluetooth connections to the app?
I need this for our own application (multi user bounded) but the example does not work with multiple bluetooth users.
嗨Wouter,
The proximity reporter is an application in peripheral role, and by BLE spec, a peripheral device can be connected to only 1 device, even when setting BLE_CONNECTION_MAX_USER to 2. The device can support multiple connections whilst in central role.
Kind regards,
JE_Dialog
Is is possible with the current Dialog SDK to get in a central role? Are there any example that support this?
As followup I see in the da14580_stack_config.h header file the CFG_ALLROLES 1. If I look in source the central role has a higher prio than the peripheral role in terms of max connections define
/// Maximum number of simultaneous connections
#if (BLE_CENTRAL)
#define BLE_CONNECTION_MAX CFG_CON
#elif (BLE_PERIPHERAL)
#define BLE_CONNECTION_MAX 1
#else
#define BLE_CONNECTION_MAX 1
#endif /* #if (BLE_CENTRAL) */
Hi Woulter,
What do you mean by "current Dialog SDK"?
kind regards