• Hey everyone,

    Really enjoying getting back into working with my Puck.js v 2.0b Firmware 2v14

    I'm trying to get the Puck to notify my iOS app (Xcode 13.4), and I am able to find and connect to the Puck, discover the services and custom characteristic, but when I try to setNotifyValue(true, for: customCharacteristic) I get the following error and notifications are clearly do not work when I press the button:

    ERROR updating notification state error=Error Domain=CBATTErrorDomain Code=6 "The request is not supported." UserInfo={NSLocalizedDescription=The request is not supported.}
    

    The Puck.js code I am using is from the documentation:

    var count = 0;
    
    NRF.setServices({
      0xBCDE : {
        0xABCD : {
          value: "Hello",
          maxLen : 20,
          notify: true
        },
      }
    });
    
    setWatch(function() {
      count = count + 1;
      NRF.updateServices({
        0xBCDE : {
          0xABCD : {
            value : "World "+count+"!",
            notify: true
          }
        }
      });
    }, BTN, { repeat:true, edge:"rising", debounce: 50 });
    

    Appreciate any guidance.
    Thanks,
    Narath

About

Avatar for narath @narath started