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

How to send some data from multilink peripheral to multilink central?

I have three pca10001 boards. One is programmed as multilink central and other is programmed as multilink peripheral. when both peripherals are connected to central, the central detects them both seperately but shows the same device id of both the peripherals which is I dont want. I want to see different device ids of peripherals. . so I lea

Parents
  • image description In main.c file of multilink_Cenral. first i defined global variables..

    image description then i assigned my global variables values of p_peer_addrs.

    image description now i am in the file of client_handling.c .. i defined those variables as extern in it.

    image description finally i printed the variables which contain the device id.. with 1 and 0. if led is on, the output is something like this, 5BE4=1 , and when LED is off, the output is 5BE4=0. for one board as a peripheral it is perfect.

    the problem is when I connect the two boards as peripheral, i get the same device id of both which is not I want.. I want different device id of both..

  • I hope you will get it now.. I want the different device ids.. or something unique data which distinguish both the peripherals.. please help

Reply Children
No Data
Related