Is it possible to implement a multi-peripheral using node pc-ble-driver-js? And could you possibly provide an example?
Is it possible to implement a multi-peripheral using node pc-ble-driver-js? And could you possibly provide an example?
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
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