Would you be ok posting up your setScan code? I've just been doing this:
var n = 0;
NRF.setScan(function(d) {
n++;
if (d.id=="f3:ec:65:44:85:db random") {
LED1.write(d.rssi>-88);
LED2.write(d.rssi>-85);
LED3.write(d.rssi>-82);
}
});
var hist = [];
setInterval(function() {
console.log(n/5,"adv/sec");
while (hist.length>20) hist.shift();
hist.push(n/5);
n=0;
}, 5000);
With around 15 advertising packets/second received, and it still seems stable. When connected the amount of advertising packets received drops from 15 down to 8/9 though - so having a connection open means it misses quite a lot.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Would you be ok posting up your setScan code? I've just been doing this:
With around 15 advertising packets/second received, and it still seems stable. When connected the amount of advertising packets received drops from 15 down to 8/9 though - so having a connection open means it misses quite a lot.