<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://theeyetribe.com/forum/feed.php?f=27&amp;t=382" />

<title>The Eye Tribe</title>
<subtitle>Developer Forum</subtitle>
<link href="http://theeyetribe.com/forum/index.php" />
<updated>2015-01-12T15:08:35+02:00</updated>

<author><name><![CDATA[The Eye Tribe]]></name></author>
<id>http://theeyetribe.com/forum/feed.php?f=27&amp;t=382</id>
<entry>
<author><name><![CDATA[Micky]]></name></author>
<updated>2015-01-12T15:08:35+02:00</updated>
<published>2015-01-12T15:08:35+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=382&amp;p=1627#p1627</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=382&amp;p=1627#p1627"/>
<title type="html"><![CDATA[Re: Multiple responses in one message (JavaScript only?)]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=382&amp;p=1627#p1627"><![CDATA[
Hi,<br /><br />The EyeTribe server communicates over a raw/stream TCP socket, which by design just streams data whenever it's available. As experienced data from the server can contain multiple JSON messages, just as data may only contain a partial JSON message. To account for this count the '{' and '}' to know when a complete JSON message has been received. The SDKs are all doing exactly that.<br /><br />It's currently not possible to disable the heartbeat acknowledgements from the server.<br /><br />Regarding the offtopic question. It is not possible to set the heartbeat interval, it has been set by the server, but the value can be queried using:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>{ &quot;category&quot;: &quot;tracker&quot;, &quot;request&quot;: &quot;get&quot;, &quot;values&quot;: &#91; &quot;heartbeatinterval&quot; &#93; }</code></dd></dl><br />which will provide the heartbeat interval in [ms]. Heartbeats need to be sent at least once within one heartbeat time interval, which, in the time of writing, corresponds to 3 seconds.<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=6640">skataMicky</a> — 12 Jan 2015, 15:08</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[warbyrd]]></name></author>
<updated>2014-12-12T06:57:27+02:00</updated>
<published>2014-12-12T06:57:27+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=382&amp;p=1576#p1576</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=382&amp;p=1576#p1576"/>
<title type="html"><![CDATA[Multiple responses in one message (JavaScript only?)]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=382&amp;p=1576#p1576"><![CDATA[
Hi,<br /><br />i'm trying to calibrate the EyeTribe within JavaScript.<br />So i send a heartbeat every 200ms.<br /><br />When i start calibrating it happens, that the heartbeat-response kind of interferes with the actual interesting response.<br /><br />Then something like this is the data from ONE message from the EyeTribe:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>{&quot;category&quot;:&quot;heartbeat&quot;,&quot;statuscode&quot;:200}<br />{&quot;category&quot;:&quot;tracker&quot;,&quot;request&quot;:&quot;get&quot;,&quot;statuscode&quot;:200,&quot;values&quot;:{&quot;frame&quot;:{&quot;avg&quot;:{&quot;x&quot;:0.0,&quot;y&quot;:0.0},&quot;fix&quot;:false,&quot;lefteye&quot;:{&quot;avg&quot;:{&quot;x&quot;:0.0,&quot;y&quot;:0.0},&quot;pcenter&quot;:{&quot;x&quot;:0.3968,&quot;y&quot;:0.3453},&quot;<br />psize&quot;:20.6514,&quot;raw&quot;:{&quot;x&quot;:0.0,&quot;y&quot;:0.0}},&quot;raw&quot;:{&quot;x&quot;:0.0,&quot;y&quot;:0.0},&quot;righteye&quot;:{&quot;avg&quot;:{&quot;x&quot;:0.0,&quot;y&quot;:0.0},&quot;pcenter&quot;:{&quot;x&quot;:0.5504,&quot;y&quot;:0.3348},&quot;psize&quot;:16.2393,&quot;raw&quot;:{&quot;x&quot;:0.0,&quot;y&quot;:0.0}},&quot;stat<br />e&quot;:6,&quot;time&quot;:1020246937,&quot;timestamp&quot;:&quot;2014-12-12 05:44:14.617&quot;}}}</code></dd></dl><br /><br />As i have to parse the data to a JSON Object, the Parser throws an exception and if the second message inside the above code is a calibration response the procedure gets all messed up.<br /><br />So my question is, if i can somehow disable the heartbeat response as it is kinda useless and only useful for debugging.<br /><br />Or are there better ways to calibrate the EyeTribe in my own app? Should i disable the push mode and just request the data every 33ms?<br /><br />--<br />and also an offtopic question: What is the longest heartbeat interval i can set? - i mean i could just try, but if you told us all, i wouldn't have to <img src="http://theeyetribe.com/forum/images/smilies/icon_e_wink.gif" alt=";)" title="Wink" /><p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=5371">skatawarbyrd</a> — 12 Dec 2014, 06:57</p><hr />
]]></content>
</entry>
</feed>