You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Yes, I was wondering about that - which is why the code's not in there yet.

    Any suggestions?

    • We could add an updateServices that updates the values of just the specified services.
    • NRF.setServices could return an array of objects, so you can do:

      var gatt = NRF.setServices(...);
      gatt[0x0000][0x0001].write("Foo");
      
    • Or it could take a callback which contained the specific object:

      NRF.setServices({
      0x0000: {
      0x0001: {
        value : "Hello",
        maxLen : 5,
        readable : true,
        notify : true,
        onCreate : function(handle) {
          // all created now...
          handle.write("Foo");
        }
      }
      }
      });
      
About

Avatar for Gordon @Gordon started