Set Door Close
The SET_DOOR_CLOSE command releases door control back to normal usage. It may not close the lift door immediately. This ensures that the lift becomes available for other passengers and prevents the door from reopening unintentionally.
warning
Always use this command after completing operations that required the door to stay open.
WebSocket API
Command
- Command:
SET_DOOR_CLOSE
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
command | String | Yes | SET_DOOR_CLOSE |
requestId | String | Yes | Unique identifier for the request |
parameters.liftId | String | Yes | The ID of the lift to close doors |
Response
| Field | Type | Description |
|---|---|---|
requestId | String | Unique identifier for the request. |
status | String | Status of the request (success or error). |
code | String | Response code (e.g., SET_DOOR_CLOSE_OK) |
message | String | Descriptive message about the response |
Example Request
{
"requestId": "a1b2c3d7",
"command": "SET_DOOR_CLOSE",
"parameters": {
"liftId": "lift1"
}
}
Expected Response
- On Success:
{
"requestId": "a1b2c3d7",
"status": "success",
"code": "SET_DOOR_CLOSE_OK",
"message": "Door closed successfully"
}