Skip to content

ESP32 Example - Write operation not allowed #460

@kndndrj

Description

@kndndrj

Hey, first off - awesome work on the library!

Second - I'm not sure if I'm doing something wrong, but when I try running the esp32 - ble_bas_peripheral.rs/ble_bas_peripheral_sec.rs examples, I run into some problems when writing to the custom characteristic.

  1. Everything connected to battery level works (reading and notifications).
  2. I can read the status characteristic (408813df-5dd4-1f87-ec11-cdb001100000), but I can't find a way to write to it.

Here's how I tried writing to the characteristic (bluetoothctl):

pair FF:E4:...
trust FF:E4:...
menu gatt
select-attribute 408813df-5dd4-1f87-ec11-cdb001100000
read
  -> returns 00
write 01
  -> returns:
    Attempting to write /org/bluez/hci0/dev_FF_E4_05_08_8F_FF/service0020/char0026
    Failed to write: org.bluez.Error.NotAuthorized

I'm using the esp32 board.
Tested with two machines - one running Arch Linux, the other one NixOS.

Am I missing something obvious? Thanks in advance!

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