-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Esp32 TWAI message problem
#11735
-
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.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment