You are reading a single comment by @Gustav and its replies. Click here to read the full conversation.
  • I'm afraid those constants aren't defined in JS - they just come from the Nordic Softdevice.

    Doing var BLE_HCI_REMOTE_USER_TERMINATED_CONNECTIO­N = 0x13 as you suggest would really help I reckon.

    Of course I guess you could also do:

    var reasons = [];
     NRF.on('disconnect', function (reason) {
        reasons.push(reason);
      });
    

    And then check out what was in reasons when you reconnect?

About

Avatar for Gustav @Gustav started