• hello ,
    I have started a new project , and went back to basic because something isn't working for me
    simple scan for devices and print them
    this is the code:

    NRF.setAdvertising({}, {name: "Test3"});
    
    var s=setInterval(function(){
    LED1.write(false);
    NRF.findDevices(function(devices) {
      if (devices.length>0)
      {
        print("I found you :\n\r ");
        for(var i=0;i<devices.length;i++)
      {
        
        var time = (new Date()).toString();
        var rssi = devices[i].rssi;
        var MAC = devices[i].id;
        var name = devices[i].name;
        var manufacturer = devices[i].manufacturer;
        print (
             + " " +   time
             + " " +   MAC
             + " " +   rssi
             + " " +   name
             + "  " + manufacturer
        );
        
      } }
      LED1.write(true);    
     print ("**************************");               
    }, 1000);},5000);
    
    

    I can see devices found (none of them is my phone...)

    I found you :
    NaNMon Aug 10 2020 17:08:56 GMT+0300 00:0e:0b:0c:70:03 -77 undefined  19784
    NaNMon Aug 10 2020 17:08:56 GMT+0300 7c:9a:12:f8:57:c3 -85 undefined  76
    NaNMon Aug 10 2020 17:08:56 GMT+0300 28:af:35:20:89:9b -89 undefined  6
    NaNMon Aug 10 2020 17:08:56 GMT+0300 68:bd:35:87:b2:2c -87 undefined  6
    NaNMon Aug 10 2020 17:08:56 GMT+0300 60:d9:f3:7d:3e:a6 -87 undefined  76
    **************************
    

    everything is on the desk maybe 10 cm from the device
    the samsung phone bluetooth is open
    how could it be ?
    did I miss something in the code?

    Thanks ,

About