Class CanBus
java.lang.Object
com.codename1.hardware.CanBus
A CAN network interface, opened through
Hardware.openCan(String).-
Method Summary
-
Method Details
-
getInterface
The interface name. -
send
Sends one frame.
Throws
HardwareException: when the send fails or the bus is closed
- Throws:
HardwareException
-
receive
Waits up to
timeoutMsfor a frame (negative waits indefinitely) and returns it, ornullon timeout. Call it off the event dispatch thread.Throws
HardwareException: when the receive fails or the bus is closed
- Throws:
HardwareException
-
close
public void close()Closes the interface. Closing twice is harmless.
-