Skip to content

Notifications started but no events fired on iOS #13

@eulphean

Description

@eulphean

Hello, thanks a lot for creating this library. It's really good and it's been working great. I'm using it with nRF52840 feather express board and UART service to communicate. I'm working on a web-app, which needs to function on iOS; however, chrome nor safari supports the Bluetooth APIs. I installed WebBle, Bluefly and other browsers that do support the Bluetooth APIs. On those browsers, I can successfully connect to the Bluetooth device, but I never receive the data. It appears that the event 'characteristicvaluechanged' might not be getting fired. I do see this log in the console printed.

console.log('> Notifications started');

Below is the code that I have. Any pointers or help will be useful.
Warmly,
Amay

  // Read UART characteristics. 
  handleCharacteristics(error, characteristics) {
      if (error) {
          console.log('error: ', error);
          return; 
      }

      this.myTxCharacteristic = characteristics[0]; 
      this.myRxCharacteristic = characteristics[1];

      this.myBLE.startNotifications(this.myRxCharacteristic, this.handleIncomingData.bind(this), 'string');

      this.isReceivingData = true; 
      console.log("BLE: Successfully paired. Ready to communicate.")
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions