Hi! Just an update on this - it was a stretch goal on the KickStarter, and I never got around to implementing it. However I have just got something working! (cutting edge build, 2v14.63).
Right now, you can't advertise as connectable or scannable, but this still seems to be pretty powerful...
For instance:
// on transmitter
NRF.setTxPower(8);
NRF.setAdvertising({},{phy:"coded",connectable:false,scannable:false}); // this works!
// on receiver...
var age = 0;
NRF.setScan(function(d) {
g.clear(1).setFont("6x8").drawString(`
id ${d.id}
name : ${d.name}
rssi: ${d.rssi}
`);
age = 0;
},{phy:"coded"});
setInterval(function() {
g.drawString("age: "+age+" ",0,100,true);
age++;
}, 1000);
Will advertise on one Bangle, and show when a packet is received on another. I'm still seeing the signal received all the way through the house at the other end of the garden.
It'll be really interesting to see what you come up with :)
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.
Hi! Just an update on this - it was a stretch goal on the KickStarter, and I never got around to implementing it. However I have just got something working! (cutting edge build, 2v14.63).
Right now, you can't advertise as connectable or scannable, but this still seems to be pretty powerful...
For instance:
Will advertise on one Bangle, and show when a packet is received on another. I'm still seeing the signal received all the way through the house at the other end of the garden.
It'll be really interesting to see what you come up with :)