Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notifications started but no events fired on iOS #13

Open
eulphean opened this issue Jun 22, 2021 · 1 comment
Open

Notifications started but no events fired on iOS #13

eulphean opened this issue Jun 22, 2021 · 1 comment

Comments

@eulphean
Copy link

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.")
  }

@eulphean
Copy link
Author

eulphean commented Jul 1, 2021

Any pointers here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant