You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Events might make sense, but I don't understand why the changes I just made aren't ok for you?

      0xBCDE : {
        0xABCD : {
          writable : true,
          onWrite : function(evt) {
            if (NRF.getSecurityStatus().bonded) // do stuff

    Realistically that's less code than if you had to handle the event as well.

  • Yeah, I agree, this should perfectly work for nrf52 boards. The reason why I was looking into an option with a new event is that NRF.getSecurityStatus() does not work for nrf51. It just seems to me that an important/little piece is missing from the nrf51 api that is not very difficult to implement (from my immature point of view) but once implemented would seriously improve security aspects.


Avatar for Gordon @Gordon started