void setup() {
Serial.begin(115200);
Serial.println("ESP32-Arduino-CAN Send Basic Demo");
/* initialize and start, use pin 5 as CAN_tx and pin 4 as CAN_rx, CAN bus is set to 500kbps */
ESP32Can.CANInit(GPIO_NUM_5, GPIO_NUM_4, ESP32_SPEED_500KBPS);
}
should be:
void setup() {
Serial.begin(115200);
Serial.println("ESP32-Arduino-CAN Send Basic Demo");
/* initialize and start, use pin 5 as CAN_tx and pin 4 as CAN_rx, CAN bus is set to 500kbps */
ESP32Can.CANInit(GPIO_NUM_5, GPIO_NUM_4, ESP32CAN_SPEED_500KBPS);
}
There is a typo on send example:
should be: