You are reading a single comment by @Jean-Philippe_Rey and its replies. Click here to read the full conversation.
  • Just trying your code, it gives me this log:

    >Connect2(MyDev)
    =undefined
    BluetoothRemoteGATTServer {
      "device": BluetoothDevice {
        "id": "96:05:05:f7:ac:1c random",
        "rssi": -54,
        "services": [  ],
        "data": new Uint8Array([2, 1, 4, 12, 9, 72, 75, 73, 18, 45, 54, 30, 54, 48, 49, 57]).buffer,
        "name": "MyActuator",
        "gatt":  ...
       },
      "connected": true }
    delayed for 1000ms...
    BluetoothRemoteGATTServer {
      "device": BluetoothDevice {
        "id": "96:05:05:f7:ac:1c random",
        "rssi": -54,
        "services": [  ],
        "data": new Uint8Array([2, 1, 4, 12, 9, 72, 75, 73, 18, 45, 54, 30, 54, 48, 49, 57]).buffer,
        "name": "MyActuator",
        "gatt":  ...
       },
      "connected": false }
    end delay - getPrimaryService
    Uncaught Error: Unhandled promise rejection: Not connected
    > 
    

    I just tried with the smartphone of a colleague (Samsung galaxy S5), he just can't connect to it. Therefore, I will investigate the whitelisting/bonding topic.
    It's a shame I cannot use the nrf sniffer (PCA100028) that I just received, it seem to have a problem with the Segger driver version, that seems to be too recent :-/

About