Confirmed users
1,018
edits
Line 190: | Line 190: | ||
<i><b>Question</b></i>: They go away after a factory reset, right? Otherwise you've either bricked or you're maintaining data across a formatting (bad idea). | <i><b>Question</b></i>: They go away after a factory reset, right? Otherwise you've either bricked or you're maintaining data across a formatting (bad idea). | ||
{"c":"e", "m":"commencing device termination"} | {"c":"e", "m":"commencing device termination"} | ||
<dt><b>a</b>cknowledge | <dt><b>a</b>cknowledge | ||
<dd>A client may optionally reply to any GET command with a POSTed "ack", specifying the <b>a</b>ction taken, and fetching any further commands from the server. | <dd>A client may optionally reply to any GET command with a POSTed "ack", specifying the <b>a</b>ction taken, and fetching any further commands from the server. | ||
Line 206: | Line 199: | ||
if no command is available, an empty object is returned. | if no command is available, an empty object is returned. | ||
{} | {} | ||
</dl> | |||
==== POST /<i>$v</i>/state/<i>$id</i> | |||
A device will return it's status information as a POST. | |||
<dl> | |||
<dt><b>s</b>tate | |||
<dd>request a device to return the current status information. | |||
format consists of: | |||
* is the lock <b>k</b>ey present? True or False | |||
* the current <b>t</b>racking location information for the device. | |||
{"c":"s", "k":True, "t":{"la":37.388017, "lo":-122.0833, "ti":1234567890}} | |||
The server may reply to the POST with a further COMMAND. | |||
</dl> | </dl> | ||