> For the complete documentation index, see [llms.txt](https://sdk.twelite.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sdk.twelite.info/en/twelite-net-api-ref/twelite-net-guan-shu/toconet_tx_vprocesseventqueue.md).

# ToCoNet\_Tx\_vProcessEventQueue()

## Explanation

Promptly process radio packet transmission requests.

This function is called immediately after the `ToCoNet_bMacTxReq()` request to process the transmission request as soon as possible. If this request is not made, the radio transmission will be processed at the time of the system timer (default 4ms).

{% hint style="warning" %}
A rapid radio transmission occurs when there are no other transmission requests being processed at the time, and no transmission delay has been set for the relevant transmission request. This is useful, for example, if you want to transmit continuously, waiting for a transmission to complete.
{% endhint %}

## Argument

None

## Returns

None

## Sample code

```c
/* Wait for completion of transmission and then make the next packet request */
void cbToCoNet_vTxEvent(uint8 u8CbId, uint8 bStatus) {
	if (sAppData.bOnTx) { // Flag during transmission
		vTransmit();
	}
	return;
}

static void vTransmit() {
	_C {
		// transmit Ack back
		tsTxDataApp tsTx;
		memset(&tsTx, 0, sizeof(tsTxDataApp));

		tsTx.u32SrcAddr = ToCoNet_u32GetSerial(); // its own address
		tsTx.u32DstAddr = 0xFFFF; // broadcast

		tsTx.bAckReq = FALSE;

		tsTx.u8Retry = 0; // NO RE-TRANSMIT
		tsTx.u16DelayMin = 0;
		tsTx.u16DelayMax = 0;
		tsTx.u16RetryDur = 0; // No delay, immediately transmitted

		// Payload construction
		...
		
		// Do transmit
		if (ToCoNet_bMacTxReq(&tsTx)) {
			// The transmission request is processed 
			//as soon as it is accepted.
			ToCoNet_Tx_vProcessQueue(); 
		}
	}
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sdk.twelite.info/en/twelite-net-api-ref/twelite-net-guan-shu/toconet_tx_vprocesseventqueue.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
