Skip to content

Cannot listen for changes on characteristic.startNotifications() #85

@kolan51

Description

@kolan51

Does there exist a valueListener in Web ble for flutter to listen for changes in notifications?

example for web ble:


  function handleScaleMeasurementCharacteristic(characteristic) {
      console.log(characteristic);
      console.log("Starting notifications...");
      return characteristic.startNotifications().then((char) => {
        console.log("Adding event listener...");
        char.addEventListener(
          "oncharacteristicvaluechanged",
          onCharacteristicValueChanged
        );
      });
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions