Home / Docs Center / Pet Feeder (ODM Case) / Manual Feeding(ToDeviceFeedManual)
Manual Feeding(ToDeviceFeedManual)
Project: Pet Feeder | page_id: 1719
Brief Description
- Logical interface name. The actual request path on the server side is /xsw/api/sys/commandReceive, and the command is fixed to feed_manual.
- xstrive receives through /tmp/xstrive_in_pip, and the return result is written to /tmp/xstrive_out_pip
Request URL
http://192.168.0.15/xsw/api/sys/commandReceive
Request Method
- post
Request BODY Parameter Example
{
"command": "feed_manual",
"data": {
"amount": 0,
"userId": 0,
"userName": "string"
}
}
JSON Field Description
| Field Name | Required | Type | Description |
|---|---|---|---|
| command | Yes | string | Fixed command value: feed_manual |
| data | Yes | object | |
| amount | Yes | integer | Portion for this feeding |
| userId | Yes | integer | Feeding user ID |
| userName | Yes | string | Feeding user name |
Success Response Example
{
"code": 0,
"msg": "ok"
}
Parameter Description of the Success Response Example
| Parameter Name | Type | Description |
|---|---|---|
| code | integer | |
| msg | string |
Didn't find what you need?Contact us,Talk to our engineers directly.