Sorry if I'm posting on the wrong section. Although I'm using C++, the problem doesn't seem to be linked to the language directly (as a suggestion, I think there should be a "general" forum under "Development" for questions regarding EyeTribe API, JSON messages, and so on)
Anyway, I was trying to connect to the eyetracker via socket and send JSON messages. So far I'm able to do basic comunication (such as enabling push mode, receive eye position, etc). But when I try to set screen values (resolution and physical dimensions), the server returns this message:
- Code: Select all
{"category":"tracker","request":"set","statuscode":400,"values":{"statusmessage":"All screen values must be set at the same time"}}
This is the string I'm sending:
- Code: Select all
{"category":"tracker","request":"set","values":{"screenindex":0,"screenresw":1920,"screenresh":1080,"screenpsyw":0.51,"screenpsyh":0.29}}
Can anyone shed some light on this, please? Thanks in advance.
Regards,
Rafael