don/node-eddystone-beacon

Is library currently expected to support multiple beacons at the same time?

Closed this issue · 3 comments

I believe bleno supports creating multiple peripherals? And eddystone-beacon seems to return a new instance. Should you be able to make multiple beacons? The following code only advertises whatever it was last called with:

var eddystoneBeacon = require('./../../index');

eddystoneBeacon.advertiseUid('00010203040506070809', 'aabbccddeeff');

setTimeout(function(){

  var eddystoneBeacon2 = require('./../../index');
  eddystoneBeacon2.advertiseUrl('http://www.google.com');

},10000);

@jacobrosenthal that's the expected behaviour. Only one advertisement at a time.

Only TLM interleaving is currently supported.

I have no urgent need for multiple devices currently, but who is the
blocker bleno or eddystone-beacon?

On Sun, Sep 6, 2015 at 2:39 PM, Sandeep Mistry notifications@github.com
wrote:

@jacobrosenthal https://github.com/jacobrosenthal that's the expected
behaviour. Only one advertisement at a time.

Only TLM interleaving is currently supported.


Reply to this email directly or view it on GitHub
#21 (comment)
.

I wouldn't say it's a blocker, the radio can only have a single advertisement data at a time, so the bleno API has this in mind.

The eddystone-beacon uses a timer to rotate the advertising data, so for multiple advertising frame types to be interleaved, a similar approach is needed.