Connection
This page shows you how to make connections with cameras using RICOH Camera Wireless SDK.
Contents
- Related Classes
 - How to Detect Cameras
 - How to Connect to Camera
 - How to Disconnect from Camera
 - How to Check Connection Status
 - See Also
 
Related Classes
The following interfaces and classes are used when you make a connection with cameras:
CameraDeviceDetector
- The 
CameraDeviceDetectorclass includes methods for detecting camera devices which are connected with Wireless LANs. 
CameraDevice
- The 
CameraDeviceinterface represents a camera device. - This interface includes methods for obtaining camera information and operating camera device.
 
Detect Cameras
Use the detect to obtain a list of connectable camera devices.   
To connect to a camera, you need to detect connectable camera devices first.
CameraDevice cameraDevice = null;
List<CameraDevice> detectedDevices =
    CameraDeviceDetector.detect(DeviceInterface.WLAN);
if (detectedDevices.isEmpty() == false) {
    cameraDevice = detectedDevices.get(0);
}
Connect to Camera
Use the connect method to connect to one of the detected camera devices.
Response response = cameraDevice.connect(DeviceInterface.WLAN);
Disconnect from Camera
Use the disconnect method to disconnect from the camera.
Response response = cameraDevice.disconnect(DeviceInterface.WLAN);
Check Connection Status
Use the isConnected method to check connection status of the camera.
boolean result = cameraDevice.isConnected(DeviceInterface.WLAN);
See Also
- Events - Describes events such as receiving camera event notifications.