canmove, Confirmed users
1,173
edits
| Line 155: | Line 155: | ||
=== Device Commands === | === Device Commands === | ||
One or more of the following commands may be issued in a single server response: | |||
<table border=0 cellpadding=15 cellspacing=0> | <table border=0 cellpadding=15 cellspacing=0> | ||
<tr> | <tr bgcolor="aaaaaa"> | ||
<th valign=top>Command</th><th valign=top>Short Code</th><th valign=top>Additional parameters</th><th valign=top>Details</th> | <th valign=top>Command</th><th valign=top>Short Code</th><th valign=top>Additional parameters</th><th valign=top>Details</th> | ||
</tr> | </tr> | ||
| Line 163: | Line 165: | ||
<td>lock</td><td>l</td><td>"c": <lock code></td><td>Specify the lock code to use, if no device lock code is present. If a lock code already exists on the device, lock the device with the | <td>lock</td><td>l</td><td>"c": <lock code></td><td>Specify the lock code to use, if no device lock code is present. If a lock code already exists on the device, lock the device with the | ||
device's lock code.</td> | device's lock code.</td> | ||
</tr> | |||
<tr bgcolor="eeeee"> | |||
<td>message</td><td>m</td><td>"m": <message><br>"n": <phone number></td><td>Displays <message> on the device including the contact <phone number>. Contact numbers are limited to 25 characters in the set <code>0123456789 +-()</code>. Messages are limited to 100 standard (non-control) ASCII characters</td> | |||
</tr> | |||
<tr> | |||
<td>ring</td><td>r</td><td>"d": <duration><br>"p": <period></td><td>Cause the device to ring every <period> seconds for the specified duration. Specifying a duration of 0 cancels any previous ring commands.</td> | |||
</tr> | |||
<tr bgcolor="eeeee"> | |||
<td>track</td><td>t</td><td>"d": <duration><br>"p": <period></td><td>Begin active location tracking on the device, reporting the devices position every <period> seconds for <duration> seconds. See below for the response format for this report. Specifying a duration of 0 stops the device from reporting | |||
its location.</td> | |||
</tr> | |||
<tr> | |||
<td>erase</td><td>e</td><td></td><td>Erase the device. This performs a factory reset.</td> | |||
</tr> | </tr> | ||
</table> | </table> | ||
A successful client response will be formatted: | A successful client response will be formatted: | ||
| Line 233: | Line 196: | ||
Other HTTP response codes (500, 301, 200, etc) perform as per normal. | Other HTTP response codes (500, 301, 200, etc) perform as per normal. | ||
<b>For the "t" command:</b><br> | <b>For the "t" command:</b><br> | ||
| Line 253: | Line 208: | ||
for whatever reason, the user has not activated or authorized geo-location for | for whatever reason, the user has not activated or authorized geo-location for | ||
a device, the "la"/"lo" values may be specified as 0. | a device, the "la"/"lo" values may be specified as 0. | ||
==Platform Requirements== | ==Platform Requirements== | ||