# Libcanard Pushing to TX Queue

**URL:** <https://forum.opencyphal.org/t/libcanard-pushing-to-tx-queue/941>\
**Category:** Libcanard\
**Created:** [September 14, 2020, 1:55pm UTC](https://forum.opencyphal.org/t/libcanard-pushing-to-tx-queue/941 "2020-09-14T13:55:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EFalcione](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/efalcione/32/895_2.png) [@EFalcione](https://forum.opencyphal.org/u/EFalcione)\
**Post date:** [September 14, 2020, 1:55pm UTC](https://forum.opencyphal.org/t/libcanard-pushing-to-tx-queue/941/1 "2020-09-14T13:55:41Z")

</div>

Hi all,  
I am writing a program in the STM32CubeIDE using UAVCAN. I am new to STM processors and to the UAVCAN protocol. I am using the libcanard canard.c and canard.h files. In canard.c, I see a function for popping data off the tx queue (canardPopTxQueue). However, I don’t see a function for pushing data onto the queue. How can you put data in the queue?

---

<div class="post-metadata">

**Author:** ![pavel.kirienko](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/pavel.kirienko/32/9_2.png) [@pavel.kirienko](https://forum.opencyphal.org/u/pavel.kirienko)\
**Post date:** [September 14, 2020, 2:01pm UTC](https://forum.opencyphal.org/t/libcanard-pushing-to-tx-queue/941/2 "2020-09-14T14:01:28Z")

</div>

> [@EFalcione](#):
>
> I don’t see a function for pushing data onto the queue. How can you put data in the queue?

It’s worth noting that you are using the legacy version of the library (and the protocol). New applications should adopt UAVCAN v1.

In legacy-v0, you push items onto the queue by invoking `canardBroadcast` or `canardRequestOrRespond`.

---

<div class="post-metadata">

**Author:** ![EFalcione](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/efalcione/32/895_2.png) [@EFalcione](https://forum.opencyphal.org/u/EFalcione)\
**Post date:** [September 14, 2020, 2:35pm UTC](https://forum.opencyphal.org/t/libcanard-pushing-to-tx-queue/941/3 "2020-09-14T14:35:33Z")

</div>

Thanks for the quick and concise response! You’re right, I should take a look at v1.
