This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

the pc-ble-driver - adapter question

Hi,

I'm using the the pc-ble-driver together with the nrf-ble-driver-4.1.1-win_x86_32 library and two nRF52840 dongles on two different COM ports.I'd like to clarify on how to properly use the library with two dongles. My assumtion is to use "adapter" to distinguish between the two COM streams.

When establishing communication with the dongle/SoftDevice we call

m_adapter = sd_rpc_adapter_create (transport_layer);

Later, when receiving events from the SoftDevice, this gets called:

static void ble_evt_dispatch (adapter_t *adapter, ble_evt_t *p_ble_evt)
{

...

....

}

So if I match adapter to m_adapter I know where the data is from... correct?

In reality I find that adapter and m_adapter is not the same. Why not? How can I use one only library instance on two COM ports?

Thanks for your help

M

Related