twai_transmit_v2() function
Transmit a TWAI message via a given handle
Arguments
handle
TWAI driver handle returned by `twai_driver_install_v2`
message
Message to transmit
ticks_to_wait
Number of FreeRTOS ticks to block on the TX queue
Return value
- ESP_OK: Transmission successfully queued/initiated - ESP_ERR_INVALID_ARG: Arguments are invalid - ESP_ERR_TIMEOUT: Timed out waiting for space on TX queue - ESP_FAIL: TX queue is disabled and another message is currently transmitting - ESP_ERR_INVALID_STATE: TWAI driver is not in running state, or is not installed - ESP_ERR_NOT_SUPPORTED: Listen Only Mode does not support transmissions
Notes
This is an advanced version of `twai_transmit` that can transmit a TWAI message with a given handle. Please refer to the documentation of `twai_transmit` for more details.