mirror of
https://github.com/isometimes/rpi4-osdev
synced 2024-11-13 22:00:40 +00:00
Added png to explain handle value notification in part8
This commit is contained in:
parent
b9c6386827
commit
f7933e30a6
2 changed files with 2 additions and 0 deletions
|
@ -74,6 +74,8 @@ Next we send a subscription request to the service using that handle in `sendACL
|
||||||
|
|
||||||
Finally, we call `acl_poll()` repeatedly to see if there are any updates waiting. The data comes to us in the form of an ACL packet, which identifies, amongst other things, the connection handle it was sent to/using (worth checking against our recorded handle so we know it's for us) as well as data length and an opcode.
|
Finally, we call `acl_poll()` repeatedly to see if there are any updates waiting. The data comes to us in the form of an ACL packet, which identifies, amongst other things, the connection handle it was sent to/using (worth checking against our recorded handle so we know it's for us) as well as data length and an opcode.
|
||||||
|
|
||||||
|
![ATT handle value notification opcode 1b](images/8-opcode-1b.png)
|
||||||
|
|
||||||
The opcode 0x1B represents a "ATT handle value notification" (ATT_HandleValueNoti in the TI docs). Those are the updates we're looking for. In part7 we simply print the update to debug to show it's been received.
|
The opcode 0x1B represents a "ATT handle value notification" (ATT_HandleValueNoti in the TI docs). Those are the updates we're looking for. In part7 we simply print the update to debug to show it's been received.
|
||||||
|
|
||||||
The last mile
|
The last mile
|
||||||
|
|
BIN
part8-breakout-ble/images/8-opcode-1b.png
Normal file
BIN
part8-breakout-ble/images/8-opcode-1b.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
Loading…
Reference in a new issue