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

pc-ble-driver-js multi-peripheral

Is it possible to implement a multi-peripheral using node pc-ble-driver-js? And could you possibly provide an example?

Parents
  • Hi,

    Yes, that should be possible, although we do not seem to have any example for it.

    The heart_rate_collector example connects only to one device at a time. For a multiperipheral you need to store information about multiple connections (instead of just one as in the heart_rate_collector example) and use the connection handle as lookup. You must also start scanning again after successful connection to a device, if the number of connections are less than the maximum.

    Regards,
    Terje

Reply
  • Hi,

    Yes, that should be possible, although we do not seem to have any example for it.

    The heart_rate_collector example connects only to one device at a time. For a multiperipheral you need to store information about multiple connections (instead of just one as in the heart_rate_collector example) and use the connection handle as lookup. You must also start scanning again after successful connection to a device, if the number of connections are less than the maximum.

    Regards,
    Terje

Children
No Data
Related