Interface Connector

All Superinterfaces:
AutoCloseable

public interface Connector extends AutoCloseable
Base class for physical interfaces.
  • Method Details

    • connect

      ErrorCode connect(Identity identity)
      Connects to the given Identity. Note: may be called from main/UI thread.
      Parameters:
      identity - an Identity to connect to
      Returns:
      Returns the connection status as a ErrorCode.
    • disconnect

      void disconnect()
      Disconnects the active connection interface. Note: may be called from main/UI thread.
    • setOnDisconnected

      void setOnDisconnected(ConnectionStatusListener statusListener)
    • setFrameDataReadListener

      void setFrameDataReadListener(ChannelListener channelListener)
    • setConfigurationReadListener

      void setConfigurationReadListener(ChannelListener channelListener)
    • setFileIOReadListener

      void setFileIOReadListener(ChannelListener channelListener)
    • sendFileIO

      void sendFileIO(byte[] data)
    • sendConfigData

      void sendConfigData(byte[] data)
    • setExternalVisualDataReadListener

      void setExternalVisualDataReadListener(VisualChannelListener visualDataListener)
    • startFrame

      void startFrame()
      Start image frames

      NB 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

      void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception