Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

BLE API doesn't have Descriptor #37

Open
@kutysam

Description

@kutysam

I am connecting my device to a HM-10 BLE product using GATTC.

In super summary, BLE works the following way for GATT,
There is a service, which MAY contain characteristics.
The characteristics will have a value and may have a descriptor.
http://static.thegeekstuff.com/wp-content/uploads/2014/07/ti-ble-profile.png

Usually if you expect a reply from a client, you have to enable the notifications / indications to be 1 within the descriptor field of the characteristic you want to have a reply.

For example, in HM-10, if i send a "AT", i should receive "OK"
For my android phones, and pygatt software and micropython(https://github.com/MrSurly/micropython-esp32/blob/dev-bluetooth/esp32/bluetooth_docs.md), to receive the "OK" command, I will have to manually set the notifications or indications field to be true. It works on all the devices.

However, there is no way for me to set it to be true in pycom micropython as there is no descriptor function within characteristic.

dir(blecharacteristic)
['uuid', 'instance', 'properties', 'read', 'write', 'callback']

I believe you guys missed this portion of the API. Do let me know if you guys need logs or anything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BLEIssues related to BLE

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions