sendMessage method
override
Sends a CAN message with the given ID and data.
Implementation
@override
void sendMessage({required int id, required List<int> data}) {
if (hasError || _can == null) return;
final message = CanMessage(id: id, data: data);
final error = nativeLib.BurtCan_send(_can!, message.pointer).stringError;
if (error != null) logger.warning("Could not send CAN message", body: "ID=$id, Data=$data, Error: $error");
message.dispose();
}