• Hi! I am new to Arduino and Puck and Bluetooth programming. This is probably a very simple thing - but I am really struggling to make this work.

    I have a Puck and an Adafruit Feather BLE board that I am jut trying to send signals between. I have the Arduino board setup and I know it is broadcasting. I have the Puck setup and I can run the findDevice() to search for devices (and it creates a list of available devices).

    I have the board renamed - say to "Splitz" - and my phone and Mac see the board as renamed as "Splitz" if I connect to it. But I can not for the life of me get the Puck to "see" the board.

    This is what I am using to scan for devices on a Puck button push.

    setWatch(function(e) {
        NRF.findDevices(function(devices) {
          print(devices);
      });
    }, BTN, { edge: "falling", repeat: true, debounce: 50 });
    

    The below is some of what returns. I know I just don't know what I am looking for in the returned data to parse out which one is the Feather board. The code says it is 0x00D6 hardware? I can see both devices on the Bluefruit App as well and can connect and UART to them both. I'd like to be able to send signals from the puck to the Board and vice versa.

    [
    BluetoothDevice: {
        "id": "d9:c7:44:31:02:87 random",
        "rssi": -79,
        "data": new Uint8Array([26, 255, 76, 0, 18, 2, 238, 1, 7, 17, 6, 125, 223, 234, 190, 158, 8, 80, 62, 43, 210, 193, 95, 101, 14, 224, 65]).buffer,
        "manufacturer": 76,
        "manufacturerData": new Uint8Array([18, 2, 238, 1, 7, 17, 6, 125, 223, 234, 190, 158, 8, 80, 62, 43, 210, 193, 95, 101, 14, 224, 65]).buffer
       },
      BluetoothDevice: {
        "id": "65:40:40:bb:4d:7f private-resolvable",
        "rssi": -66,
        "data": new Uint8Array([2, 1, 26, 13, 255, 76, 0, 22, 8, 0, 108, 189, 35, 11, 170, 240, 33]).buffer,
        "manufacturer": 76,
        "manufacturerData": new Uint8Array([22, 8, 0, 108, 189, 35, 11, 170, 240, 33]).buffer
       },
      BluetoothDevice: {
        "id": "6d:67:7b:97:ef:28 private-resolvable",
        "rssi": -48,
        "data": new Uint8Array([2, 1, 26, 13, 255, 76, 0, 22, 8, 0, 172, 3, 209, 26, 155, 13, 167]).buffer,
        "manufacturer": 76,
        "manufacturerData": new Uint8Array([22, 8, 0, 172, 3, 209, 26, 155, 13, 167]).buffer
       },
      BluetoothDevice: {
        "id": "cf:1b:24:db:c7:86 random",
        "rssi": -49,
        "data": new Uint8Array([7, 255, 76, 0, 18, 2, 0, 3]).buffer,
        "manufacturer": 76,
        "manufacturerData": new Uint8Array([18, 2, 0, 3]).buffer
       }
     ]
    

    Any help in the right direction would be amazing!!

About

Avatar for user158306 @user158306 started