Skip to main content
POST
/
device
/
hdc
/
command
Send Haptic Direct Control Command
curl --request POST \
  --url https://api.hapticsconnect.com/device/hdc/command \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "time": 1,
  "pos": 50
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

User can set position & velocity or position & time it will take to get the receiver there. One of the velocity or time must be specified.

time
number
required

The time in milliseconds that takes to get stroker into specified position.

Example:

1

pos
number

The position of the stroker. Range: [0, 10000).

Example:

50

Response

200

OK