Hi
my idea is to open and close pipes identified by BLE address of device. Currently I enable ESB on BLE disconnect using timeslot API.
How can I do this "on the fly"?
Thanks
Hi
my idea is to open and close pipes identified by BLE address of device. Currently I enable ESB on BLE disconnect using timeslot API.
How can I do this "on the fly"?
Thanks
Identified by the BLE address of the device? What do you mean? Could you elaborate a bit more on what you want to do?
I'm using the sd_ble_gap_address_get function to get the address, whereof I use the last 4 bytes to identify the pipe. from my understanding the I can open 8 pipes. I would like to do this dynamically if possible. only one pipe will have a fixed address, the others are changing on demand. Hope this makes things clearer.
You can have 8 pipes. But if you see in the ESB User Guide:
Pipe 0 has its own unique base address (base address 0), while pipes 1-7 use the same base address (base address 1). Each of the 8 pipes have a unique byte-long prefix address.
So it will be similar to this picture, only that it will be 8 pipes:
okay, I get it now. So my plan will not work. I had a hard time understanding this part.