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

characteristic doesn't support read operation, but it does :/ #683

Open
eried opened this issue Sep 2, 2024 · 4 comments
Open

characteristic doesn't support read operation, but it does :/ #683

eried opened this issue Sep 2, 2024 · 4 comments

Comments

@eried
Copy link

eried commented Sep 2, 2024

Hi! thanks for this add-on, I am trying to connect to a simple ESP32 device that exposes a characteristic as:

  // Create the characteristic
  BLECharacteristic* pCharacteristic = pService->createCharacteristic(
    CHARACTERISTIC_UUID,
    BLECharacteristic::PROPERTY_READ | 
    BLECharacteristic::PROPERTY_NOTIFY | 
    BLECharacteristic::PROPERTY_INDICATE);

After connecting to the device (this part works ok), when I try to get if I can read the value:

      const result = await BleClient.read(device.deviceId, this.SERVICE_UUID, this.CHARACTERISTIC_UUID);

I always get:

app.component.ts:141 Error fetching fish data: NotSupportedError: GATT operation not permitted.

Even when I can read it on another app on the same PC:

image

I am missing something very obvious?

@peitschie
Copy link
Collaborator

That looks like it ought to work. Have you tried nrf Connect on mobile (there's an Apple version too) just to confirm it's not a BLE issue?

nrf Connect sometimes can show some deeper diagnostics information too, to help root-cause what's going on there.

@eried
Copy link
Author

eried commented Sep 4, 2024

Hi, thanks. It is very similar, also can read in nrfConnect

image

On the web there is no permissions I could have missed right?, I am still puzzled on why it does not work :/

@peitschie
Copy link
Collaborator

Just clarifying @eried ... which platform ar eyou running on? Is this Web (via Chrome?), Android or iOS?

@eried
Copy link
Author

eried commented Sep 10, 2024

Hi, web via chrome, windows 10

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

2 participants