You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Literally all you need is:

    // change advertising
    var data = {a:1,b:2};
    NRF.setAdvertising({},{
      showName:false,
      manufacturer:0x0590,
      manufacturerData:JSON.stringify(data)
    });
    
    // start scanning
    NRF.setScan(function(d) {
      console.log(d.manufacturerData);
    }, { filters: [{ manufacturerData:{0x0590:{}} }] });
    

    Now it'll automatically pick up only other devices advertising with that manufacturer data

About

Avatar for Gordon @Gordon started