cancel
Showing results for 
Search instead for 
Did you mean: 

Smart Bluetooth

hachc_2137126
Contributor II

Hi,

  I'm going to run 20737 as central role which will try to connect several peripherals at the same time.

  Will it be possible to call function 'blecm_CreateConnection' to different peripherals without calling 'blecm_CreateConnectionCancel' when some peripheral is not reachable?

0 Likes
1 Solution
VictorZ_46
Employee

No, you should not call new Create without Canceling the previous one.  I think blecen_Conn will do it for you though (see hello_client sample for example).

I am also not sure what you are trying to do.  The normal behavior would be to scan for advertisements and when you see advertisement from one of your devices, you tell stack to Connect.  If your device behaves well it should connect pretty fast.  If device is not present you will not see the advertisement.

View solution in original post

3 Replies
MichaelF_56
Moderator
Moderator

I will ask one of the developers to respond.

0 Likes
VictorZ_46
Employee

No, you should not call new Create without Canceling the previous one.  I think blecen_Conn will do it for you though (see hello_client sample for example).

I am also not sure what you are trying to do.  The normal behavior would be to scan for advertisements and when you see advertisement from one of your devices, you tell stack to Connect.  If your device behaves well it should connect pretty fast.  If device is not present you will not see the advertisement.

View solution in original post

hachc_2137126
Contributor II

Hi Victorz,

  Thanks for your comment. Understood.

  I'll take care of the creating connection one by one.

0 Likes