How do you calibrate with the Tobii Pro Glasses 2 API?

Tobii Pro Glasses 2 API Tobii Pro Glasses 2 Tobii Pro
The first step to record with the Tobii Glasses 2 API is to keep the video and the live data streams alive. To do that, you will need to send two JSON objects on two different sockets connected to the recording unit on port 49152: one for the video and one for the live data (see section 4 in the Pro Glasses 2 API Developer's Guide).

The second step is to create a project with a project ID, a participant with a participant ID linked to the project ID, and finally a calibration linked to both the project ID and participant ID. You can achieve this by using the REST API (see section 7 in Pro Glasses 2 API Developer's Guide).

The following steps only use the REST API and are as follows:
1. Start the calibration.
2. If it is successful, start/stop the recording.
3. If not, restart the calibration.

Please note that both the video and the live data streams must be kept alive to get successful calibrations.