Home / Docs Center / Pet Feeder (ODM Case) / Manual Feeding(ToDeviceFeedManual)

Manual Feeding(ToDeviceFeedManual)

Pet Feeder (ODM Case) · Feeding Control API

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.

Request a Quote

Fill in the form and we will get back with a quote and proposal within 1 business day.

Click "Generate inquiry email" to open your mail client with the body pre-filled. If no mail client is configured, click "Copy" and paste it into webmail — recipient: sunshiyang@xstrive.com.