dedalqq / esp32-mcp2515

MCP2515 CAN interface library for using on esp32/esp8266
MIT License
51 stars 16 forks source link

Cannot send RTR #8

Closed ManuelWiddel closed 1 year ago

ManuelWiddel commented 1 year ago

Hey, so I could not figure out any way to set the RTR bit when sending a message, the struct can_frame doesn't have an option for that.

How difficult would it be to implement that? I'd love to use this library because everything that I need it for works, except for RTR, which is pretty important unfortunately.

ManuelWiddel commented 1 year ago

Ok I figured it out, there is a flag within the "sendMessage" function, which is not accessable from outside the library. By changing this flag, I was able to send RTR messages correctly.