question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What about callbacks from gatt?

See original GitHub issue

I am sorry but i can’t find anything about GATT’s callbacks like onConnection, onRecieve and etc. How to us it?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
MikhailNatalenkocommented, May 21, 2019

Thank you guys for this library!

1reaction
MikhailNatalenkocommented, May 21, 2019

So, i implemented everything i want with Channels

I’ve made bunch of channels, like

val eventAChannel : Channel<bool> val eventBChannel : Channel<bool>

In main code, where i want to implement main functionality i do something like:

...
eventBChannel.receive() // We will wait here our event
doMyActions()
eventAChannel.receive()///
fooBar()
...

Channels are syncrhonised out of the box so i don’t worry about concurency and other async stuff

Then eanywere in code i can send() anything and i will get everything i want

I like this aproach very much.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Read and write callbacks for GATT characteristics - Nordic Q&A
Read and write callbacks for GATT characteristics ... I'm developing an audio application which requires Bluetooth connectivity, using an nRF52833 ...
Read more >
BluetoothGattCallback - Android Developers
Callback indicating service changed event is received. Receiving this event means that the GATT database is out of sync with the remote device....
Read more >
bluetooth lowenergy - Why Android BLE gatt callback method ...
Why Android BLE gatt callback method onCharacteristicChanged callback is called in lower rate in Wear OS device than on smartphone?
Read more >
Generic Attribute Profile (GATT) - Zephyr Project Documentation
Each attribute contain a uuid , which describes their type, a read callback, a write callback and a set of permission. Both read...
Read more >
GATT Server Callbacks/Events · Issue #3 · bluez/bluez - GitHub
Hello! Is possible to make callbacks/events for GATT server when: client connected, client disconnected? Best Regards! PK.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found