Tobii Pro SDK C API
create_eyetracker.c
#include <stdio.h>
#include "tobii_research.h"
void create_eyetracker_example(char* address) {
// ex address = "tet-tcp://12.13.14.15"
TobiiResearchEyeTracker* eyetracker = NULL;
TobiiResearchStatus status = tobii_research_get_eyetracker(address, &eyetracker);
char* serial_number;
char* device_name;
char* model;
tobii_research_get_serial_number(eyetracker, &serial_number);
tobii_research_get_device_name(eyetracker, &device_name);
tobii_research_get_model(eyetracker, &model);
printf("Get Eye tracker with status: %i", status);
printf("Address: %s\n", address);
printf("Model: %s\n", model);
printf("Name (It's OK if this is empty): %s\n", device_name);
printf("Serial number: %s\n", serial_number);
}