Closed taoloo897 closed 10 months ago
i made like this and will try to can magistral frame.id= 0x38A; frame.len = 4; frame.ext = false; frame.rtr = false; frame.data[0] = b1; frame.data[1] = 0x00; frame.data[2] = b1; frame.data[3] = b4; ACAN_ESP32::can.tryToSend (frame);
Yes, you are wright. There is a PDF documentation in the extras directory of the library, and many sample codes in the examples directory.
Le 8 mars 2023 à 21:03, taoloo897 @.***> a écrit :
i made like this and will try to can magistral frame.id= 0x38A; frame.len = 4; frame.ext = false; frame.rtr = false; frame.data[0] = b1; frame.data[1] = 0x00; frame.data[2] = b1; frame.data[3] = b4; ACAN_ESP32::can.tryToSend (frame);
— Reply to this email directly, view it on GitHub https://github.com/pierremolinaro/acan-esp32/issues/7#issuecomment-1460787882, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEWKZVDINNFURNYP5TWJ7Z3W3DQ25ANCNFSM6AAAAAAVRK7M54. You are receiving this because you are subscribed to this thread.
Thanks a lot. I will open a new issue for esp32 -s3.
Can be close this issue too. Thanks
Hi. Nice work here. Library works greate with esp32u -wroomer. I have an issue I want to create a message with id and data and send it with your library. Please give me an example. I have something like this 👍 tx_frame.FIR = CAN_frame_std; tx_frame.MsgID = 0x380; tx_frame..DLC = 4; tx_frame.data[0] = 0x32; tx_frame.data[1] = 0x00; tx_frame.data[2] = 0x55; tx_frame.data[3] = 0xFF;
And other issue if i want to receive frame and read data from it (byte with byte), please, add and example too. I tried like this and i think must be ok
for(int i = 0; i < 8; i++){ Serial.println(frame.data[i]); }
Thanks