API
Control a Device
To control a device, send an HTTP POST request to https://limitos.com/api/v1/devices/
DEVICE_ID/control ,
replacing
DEVICE_ID with the ID of your device.
Parameters:
- auth_token (string): the authentication token for the device (required)
- pin (integer): the pin number to target (required)
- digital (string): "on" or "off", the digital command to send to the device
- servo (integer): the servo posiiton to send to the device
Example POST request:
POST https://limitos.com/api/v1/devices/1/control
auth_token=XXXXXXXXXXXXXXXXXX
pin=4
digital=on
If the request is successful a blank HTTP 200 response will be returned.