Get Started
ReaktSRV transforms your Android device into a hardware server in seconds. With simple port configuration, you can expose hardware capabilities such as the camera, microphone, GPS, and sensors as HTTP APIs—enabling remote control, automation, and IoT integration.
Base URL
http://{host}:{port}Example :
http://192.168.5.3:5193Request Method
POSTRequest Headers
| Name | Value | Note |
| Content-Type | application/json | Request body is in JSON format. |
Request Body
{
"use": "{handler-name}",
"action": "{action-name}",
"params": { /* Parameter Object */ }
}Field Description
| Field | Type | Required | Note |
| use | string | YES | Specifies the module to be called (e.g. camera, mic, gps, etc.) |
| action | string | YES | Specifies the action to be executed (e.g. capture, record, get, etc.) |
| params | object | NO | Parameters required for the action (optional) |
示例:
{
"use": "vibrator",
"action": "OneShot",
"params": {
"duration" : 3000,
"amplitude" : 10
}
}Response Body
{
"success": true,
"message": "OK",
"data": { /* response object */ }
}Field Description
| Field | Type | Note |
| success | boolean | Indicates whether the request was successful |
| message | string | Returned status message |
| data | object | Result data returned after the action is executed |
Example :
{
"success": true,
"message": "OK",
"data": {
"image": "base64-encoded-image-data"
}
}