• Well. Actually it does not work. Additionally to setting PROPERTY_INDICATE to the characteristc, the actual notification call BluetoothDevice.notifyCharacteristicChan­ged had hardcoded confirm=false parameter.
    After I've set it to True, the BJS2 NRF receives the indication just first time after the connection and subscription established. Then it does not receive indications.
    chracteristic in Bangle shows:

    >characteristic
    =BluetoothRemoteGATTCharacteristic: {
      uuid: "0x2a2b",
      handle_value: 42, handle_decl: 41,
      properties: { broadcast: false, read: true, writeWithoutResponse: false, write: false,
        notify: false, indicate: true, authenticatedSignedWrites: false },
      "#oncharacteristicvaluechanged": function (event) { ... },
      handle_cccd: 43,
      value: DataView: {
        buffer: new Uint8Array([230, 7, 7, 12, 18, 43, 16, 2, 1, 0]).buffer,
        byteOffset: 0, byteLength: 10 }
     }
    

    Do I have to send indication acknowledgements from the Bangle code, like from the event handler that is my updateTime(event) func? If so how to do it?

About

Avatar for Mark_M @Mark_M started