Confirmed users
1,018
edits
Line 84: | Line 84: | ||
From Server: | From Server: | ||
{" | {"c":<i>COMMAND</i>, | ||
<i>ARGS</i>} | <i>ARGS</i>} | ||
where COMMAND is: | where COMMAND is: | ||
<dl> | <dl> | ||
<dt><b> | <dt><b>r</b>ing | ||
<dd>cause the phone to ring constantly for | <dd>cause the phone to ring constantly for <b>d</b>uration seconds.<br> | ||
e.g. <code>{" | e.g. <code>{"c":"r","d":60}</code> will cause the phone to ring for 60 seconds or until dismissed on the device by the user.</dd> | ||
<dt><b> | <dt><b>t</b>rack | ||
<dd>Have the phone report back it's location every | <dd>Have the phone report back it's location every <b>p</b>eriod seconds<br> | ||
e.g. <code>{" | e.g. <code>{"c":"t","p":20}</code> will cause the phone to POST to <code>/<i>$v</i>/cmd/<i>$id</i></code> | ||
{" | {"c":"t", "la":<i>$lattitudeDecimal</i>, "lo":<i>$longitudeDecimal</i>} | ||
The server may reply back to the "track" POST with either an empty 200 or a <i>COMMAND</i> object | The server may reply back to the "track" POST with either an empty 200 or a <i>COMMAND</i> object | ||
<dt><b> | <dt><b>c</b>ancel | ||
<dd>Cancel the current activity ("ring" or "track"). | <dd>Cancel the current activity ("ring" or "track"). | ||
<dt><b> | <dt><b>n</b>uke | ||
<dd>Factory Reset your phone. | <dd>Factory Reset your phone. | ||
</dl> | </dl> |