CanPort

Type: CanPort

Script class for Can Ports (see app.openCanPort).

Methods

MethodDescription
clearQueues() Clear the read and write queues of the CAN port.
close() Close the CAN port.
status(callback(error))) Request status of the CAN port. The callback will be called with an Error object containing the status information.
write(frame [,callback]) Write a CAN frame to the port. Create the frame using `new CANFrame()`. Frames are read using callback specified when opening the port.