This is Java client HTTP REST API SDK for RPi Camera.
- Use official published artefacts, or ...
- Clone this git repository.
- Run
gradle clean build test publishToMavenLocal
to install this jar locally. - Use maven or gradle dependency below.
<dependency>
<groupId>one.microproject.rpi</groupId>
<artifactId>rpi-camera-client</artifactId>
<version>1.6.2</version>
</dependency>
implementation 'one.microproject.rpi:rpi-camera-client:1.6.2'
See also this code example.
CameraClient cameraClient = CameraClientBuilder.builder()
.baseUrl("https://localhost:8090")
.withCredentials("client-001", "secret")
.build();
cameraClient.getSystemInfo();
cameraClient.captureImage();