obniz to be used
Optional onreceiveIt is called when data is received. Data is array of bytes.
// Javascript Example
obniz.canbus0.start({mode:"normal", tx :0, rx:1, kbps:100, filter_code: 0, filter_mask: 0});
obniz.canbus0.onreceive = function(extended, rtr, id, data) {
console.log(data);
}
Rsponse waiting timeout in milliseconds
Static prefixedOptional context: anyOptional fn: ListenerFnOptional context: anyOptional once: booleanAdd a listener for a given event.
Optional context: anyAdd a one-time listener for a given event.
Optional context: anyRemove all listeners, or those of the specified event.
Optional event: stringRemove the listeners of a given event.
Optional fn: ListenerFnOptional context: anyOptional once: booleanIt only sends data to canbus and does not receive it.
// Javascript Example
obniz.canbus0.start({mode:"normal", tx :0, rx:1, kbps:100, filter_code: 0, filter_mask: 0});
obniz.canbus0.send({}, 0x700, [0x12, 0x98]);
Max length is 1024 bytes.
Generated using TypeDoc
CAN Bus