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

Multiple slave support for nRF TOOLBOX proximity application

Hi, I have tested the nRF Toolbox proximity application using nrf51822 evaluation kit and with nexus4 smartphone it is working fine. Now my question is, is it possible to modify the proximity application in nrf toolbox to support multiple slave's as in ios nRF proximity application? if it is possible, how it can be done?

Parents
  • Hi Bibin, I am sorry for the late response.

    Yes it's possible to handle multiple slaves with a single app. You would need to handle each slave with one BluetoothGatt instance. You would also need specific BluetoothGattCallback for each slave you connect to. Please note that if you have BluetoothGattServer implemented in your app, all slaves will share same server on the phone.

    Let me know if there is any issue.

  • @Balaji: Unfortunately at this moment we don't have an example for that. However, it's should not be too hard to implement. When you call

    public BluetoothGatt BluetoothDevice.connectGatt (Context context, boolean autoConnect, BluetoothGattCallback callback)

    for each device you connect to, you will receive an instance of BluetoothGatt for that connection, and can assign a separated call back for that connection.

Reply
  • @Balaji: Unfortunately at this moment we don't have an example for that. However, it's should not be too hard to implement. When you call

    public BluetoothGatt BluetoothDevice.connectGatt (Context context, boolean autoConnect, BluetoothGattCallback callback)

    for each device you connect to, you will receive an instance of BluetoothGatt for that connection, and can assign a separated call back for that connection.

Children
No Data
Related