Skip to content

How send a write request? #382

Open
Open
@smartinick

Description

@smartinick

Hi there!

i'm trying to connect esp32 to a ble server - i'm able to find the devices, uuid, services, descriptors,...
(btw - using esp32_ble_arduino)

now i need to send a write-request to a handle, but i have no idea how...?

the handle is a BLERemoteDescriptor which is found from a BLERemoteCharacteristic by using the getdescriptor.
using the writevalue method for writing 2 bytes via a char-array (and according to the sniffer it sends those 2 bytes out as desired.

when using the ble sniffer i can watch an android app connect to the ble server and it sends a write-request (OpCode 0x12 in BLE AT Protocoll).
when sniffing on the esp32 it sends the exact same packet except for the opcode which is 0x52 aka write-command.

it does not matter if i set the 3rd parameter from writevalue (response) to true or false, opcode is always 0x52.

searching the sources did not help either, bleremotedescriptor only has read/write value methods but as far as i see there's no writecommand or writerequst methods.

So that's where i'm stuck beeing happy about any usefull hint...

Thanks for your time & Brgds, Martin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions