Home Forums Reply To:

#9295
Grant [Tobii]
Keymaster

Hi @dz32 thanks for your patience whilst we tried to retrieve the correct syntax for you.

The following snipet should do the trick:

using System;
using Tobii.Interaction;

namespace Get_Serial
{
    public class Program
    {
        public static void Main()
        {
            Tobii.Interaction.Host host = new Host();

            host.EnableConnection();

            var serialNumber = host.Context.GetState(Tobii.Interaction.Framework.StatePaths.EyeTrackingInfoSerialNumber).GetStateValueOrDefault<string>();

            Console.WriteLine(serialNumber);
        }

Please try it out and let us know if we can be of any further assistance.