bluetooth.gattc_read only returns _IRQ_GATTC_READ_DONE event.

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
Stubbs
Posts: 3
Joined: Thu Jul 30, 2020 9:12 pm

bluetooth.gattc_read only returns _IRQ_GATTC_READ_DONE event.

Post by Stubbs » Tue Aug 18, 2020 7:54 am

Trying to rread the heart rate characteristic from a Polar H7 chest band:

Code: Select all

self._ble.gattc_read(self._conn_handle, self._hr_handle)
_conn_handle & _hr_handle have been set when _IRQ_GATTC_CHARACTERISTIC_RESULT is fired.

The only event that gets fired is _IRQ_GATTC_READ_DONE (16) I never get the _IRQ_GATTC_READ_RESULT event (15), and READ_DONE comes with the same data every time (0, 65535, 258)

Stubbs
Posts: 3
Joined: Thu Jul 30, 2020 9:12 pm

Re: bluetooth.gattc_read only returns _IRQ_GATTC_READ_DONE event.

Post by Stubbs » Tue Aug 18, 2020 8:13 am

I have also confirmed, I do have a pulse to read.

mflmartin
Posts: 43
Joined: Sat Jul 23, 2016 7:30 pm

Re: bluetooth.gattc_read only returns _IRQ_GATTC_READ_DONE event.

Post by mflmartin » Tue Feb 09, 2021 11:14 am

I am having the exact same problem. Did you manage to solve it?

Thanks,

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: bluetooth.gattc_read only returns _IRQ_GATTC_READ_DONE event.

Post by jimmo » Thu Feb 11, 2021 5:12 am

Stubbs wrote:
Tue Aug 18, 2020 8:13 am
I have also confirmed, I do have a pulse to read.
See viewtopic.php?f=2&t=9730&p=54751#p54751

Post Reply