Connection

This page shows you how to make connections with cameras using RICOH Camera Wireless SDK.

Contents

The following protocols and classes are used when you make a connection with cameras:

CameraDeviceDetector

  • The CameraDeviceDetector class includes methods for detecting camera devices which are connected with Wireless LANs.

CameraDevice

  • The CameraDevice protocol represents a camera device.
  • This protocol 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.

let detectedDevices = CameraDeviceDetector.detect(deviceInterface: .wlan)
if detectedDevices.isEmpty {
    return
}
let cameraDevice = detectedDevices[0]

Connect to Camera

Use the connect method to connect to one of the detected camera devices.

let Response = cameraDevice.connect(deviceInterface: .wlan)

Disconnect from Camera

Use the disconnect method to disconnect from the camera.

let Response = cameraDevice.disconnect(deviceInterface: .wlan)

Check Connection Status

Use the isConnected method to check connection status of the camera.

let result = cameraDevice.isConnected(deviceInterface: .wlan)

See Also

  • Events - Describes events such as receiving camera event notifications.