// advertise code for both Puck.js
function onInit(){
var data = {a:"1",b:2};
NRF.setAdvertising({},{
showName:true,
manufacturer:0x0590,
manufacturerData:JSON.stringify(data)
});
}
setTimeout(save,1E3);
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.
Did some test with two pucks,
Puck.js f5b9
andPuck.js 4820
, using NRF.requestDevice and try to create aAND
for id and manufacturerData.d9:c7:0b:0a:48:20 - Puck.js 4820 (RSSI -59)
f0:d8:ef:29:f5:b9 - Puck.js f5b9 (RSSI -58)
Then run this simple code
Try different filter possibility
Hmm, not sure about filters any more.....