Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Esp32 TWAI message problem #11735

Unanswered
Janusz71 asked this question in Q&A
Discussion options

Hi. Has anyone tried sending zero-length messages via TWAI (version 3.3.0). I have the following code:

void SendMsg0()
{
static twai_message_t msg = {0};
msg.identifier = 600;
msg.data_length_code = 0;
esp_err_t status = twai_transmit(&msg, pdMS_TO_TICKS(40)); // Queue message for transmission
if((status) != ESP_OK) Serial.printf("TXError status %X > %s\n", status, esp_err_to_name(status));
}
and I'm receiving messages with length 8.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /