You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not entirely sure how to interpret this.
I am on nodejs 19.9
both cjs and mjs give this apparent error on v4.0.4 and tried v4.0.1:
node_modules/socketcan/dist/socketcan.js:73
return new can.RawChannel(channel, timestamps, protocol, false);
^
Error: Error while creating channel
at Object.createRawChannel (/home/james/code/car/node_modules/socketcan/dist/socketcan.js:73:12)
for the following example
import * as can from 'socketcan'
// let can = require("socketcan")
let channel = can.createRawChannel('can0', true)
let msg = { id: 0x123, data: [0, 1, 2, 3, 4, 5, 6, 7] }
setInterval(() => {
let out = {}
out.id = 0x123
out.data = new Buffer.from(msg.data)
channel.send(out)
}, 100)
channel.start()
The text was updated successfully, but these errors were encountered:
Not entirely sure how to interpret this.
I am on nodejs 19.9
both cjs and mjs give this apparent error on v4.0.4 and tried v4.0.1:
for the following example
The text was updated successfully, but these errors were encountered: