You are reading a single comment by @billsalt and its replies. Click here to read the full conversation.
  • edited: never mind!! @Gordon - the first device in the list (with services: feaa) is the Eddystone UID beacon. Please ignore the rest of the blather and remind me to pull out my HP16 more often to convert decimal to hex...

    Hi @Gordon -- Sorry, didn't mean to lecture, but I hadn't understood the question. So I tried looking for my Eddystone UID tag and couldn't see it with the following. Is espruino doing some sort of filtering on manufacturer specific data types?

    NRF.findDevices(function(devices) {
      console.log(devices);
    }, 5000);
    

    Below is the output from this code with the puck.js positioned on top of the Eddystone UID beacon (should have RSSI ~ -25 or so). Attached is a screenshot from the nRF Connect app on iOS showing the beacon.

    [
      BluetoothDevice {
        "id": "ac:23:3f:22:fe:0e public",
        "rssi": -45,
        "services": [
          "feaa"
         ],
        "data": new Uint8Array([2, 1, 6, 3, 3, 170, 254, 21, 22, 170, 254, 0, 0, 18, 52, 86, 120, 144, 18, 52, 86, 120, 144, 18, 52, 86, 18, 52, 86]).buffer
       },
      BluetoothDevice {
        "id": "40:cb:c0:af:24:b9 public",
        "rssi": -83,
        "services": [  ],
        "data": new Uint8Array([2, 1, 26, 7, 255, 76, 0, 16, 2, 1, 0]).buffer
       },
      BluetoothDevice {
        "id": "27:64:ef:27:26:04",
        "rssi": -81,
        "services": [  ],
        "data": new Uint8Array([2, 1, 27, 11, 255, 76, 0, 9, 6, 3, 9, 10, 0, 1, 11]).buffer
       },
      BluetoothDevice {
        "id": "60:03:08:9b:60:d3 public",
        "rssi": -85,
        "services": [  ],
        "data": new Uint8Array([2, 1, 6, 7, 255, 76, 0, 16, 2, 11, 0]).buffer
       },
      BluetoothDevice {
        "id": "7f:20:81:4f:14:52",
        "rssi": -86,
        "services": [  ],
        "data": new Uint8Array([2, 1, 6, 19, 255, 76, 0, 12, 14, 8, 173, 216, 194, 36, 35, 248, 17, 45, 128, 119, 142, 198, 153]).buffer
       }
     ]
    

    1 Attachment

    • IMG_7730.PNG
About

Avatar for billsalt @billsalt started