Esp32 S3 - BLE Charac write fail with code 5

Olfox59
Posts: 11
Joined: Tue May 02, 2017 12:36 pm

Esp32 S3 - BLE Charac write fail with code 5

Postby Olfox59 » Fri Oct 07, 2022 10:30 am

Hi,

I'm trying to connect to my custom sensor that is the BLE server.
My esp32 S3 is the Ble client.
I'm using example ble multiconnect example, where i merged ble_client _security into it.

I can properly discover the service I need, and the good characteristic too. But when I try to write to it I get an error message printing in red into the console ( see attachement).

I thought it was linked to pairing and bonding, but even after adding the esp_ble_gap_config_local_privacy(true); and get the event, i can't write to the characeteristic. I don't see any keys exchange also, in comparaison with the gatt exemple tutorial explaination. I'm in Just work paring because no lcd or keyboard on both device.

When i do the same with nrfConnect, i can write whithout problem. I can also see the property WRITE.

Is there something i miss ?

Thanks a lot !
E (133954) espDMclient: Write char failed, error status = 5
Attachments
Capture d’écran 2022-10-07 121557.png
Capture d’écran 2022-10-07 121557.png (36.78 KiB) Viewed 642 times

Who is online

Users browsing this forum: No registered users and 135 guests