Interface Connector
- All Superinterfaces:
AutoCloseable
Base class for physical interfaces.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Connects to the givenIdentity.voidDisconnects the active connection interface.voidsendConfigData(byte[] data) voidsendFileIO(byte[] data) voidsetConfigurationReadListener(ChannelListener channelListener) voidsetExternalVisualDataReadListener(VisualChannelListener visualDataListener) voidsetFileIOReadListener(ChannelListener channelListener) voidsetFrameDataReadListener(ChannelListener channelListener) voidsetOnDisconnected(ConnectionStatusListener statusListener) voidStart image framesvoidStop image frames
-
Method Details
-
connect
Connects to the givenIdentity. Note: may be called from main/UI thread. -
disconnect
void disconnect()Disconnects the active connection interface. Note: may be called from main/UI thread. -
setOnDisconnected
-
setFrameDataReadListener
-
setConfigurationReadListener
-
setFileIOReadListener
-
sendFileIO
void sendFileIO(byte[] data) -
sendConfigData
void sendConfigData(byte[] data) -
setExternalVisualDataReadListener
-
startFrame
void startFrame()Start image framesNB MUST be called AFTER all initialization data has been sent from a FLIR ONE e.g SLED information serial (NumberBoard / versionBoard etc) AND calibration file, calling it before can cause us to intermittently not receive SLED information and calibration file causing the connection to fail
-
stopFrame
void stopFrame()Stop image frames -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-