Server Invoke API
How to fetch the API
local API = LocationToElevatorModel.Cortex_API
Independent Service
API:Fire('Independent_Service', enabled)
Parameters
| Name | Type | Required |
|---|---|---|
| enabled | boolean | ✔ |
Fire Recall
API:Fire('Fire_Service_Phase_1', enabled, recallFloor)
Parameters
| Name | Type | Required |
|---|---|---|
| enabled | boolean | ✔ |
| recallFloor | number | ✔ |
Fire Service Phase 2
API:Fire('Fire_Service_Phase_2', enabled)
Parameters
| Name | Type | Required |
|---|---|---|
| enabled | boolean | ✔ |
Stop
API:Fire('Stop', enabled)
Parameters
| Name | Type | Required |
|---|---|---|
| enabled | boolean | ✔ |
Add Call
API:Fire('Add_Call', floor) -- Car Call
Parameters
| Name | Type | Required |
|---|---|---|
| floor | number | ✔ |
or
API:Fire('Add_Call', {call = floor, direction = direction}) -- Hall Call
Parameters
| Name | Type | Required | Values |
|---|---|---|---|
| floor | number | ✔ | |
| direction | string | ✔ | U, D |
Door Open
API:Fire('Door_Open', tableWithDoorSides)
Parameters
| Name | Type | Required | Default | Example |
|---|---|---|---|---|
| tableWithDoorSides | table | ✘ | All Doors | {'Front', 'Rear'} parameter will open the front and rear doors. |
Door Close
API:Fire('Door_Close', tableWithDoorSides)
Parameters
| Name | Type | Required | Default | Example |
|---|---|---|---|---|
| tableWithDoorSides | table | ✘ | All Doors | {'Front', 'Rear'} parameter will close the front and rear doors. |
Door Nudge
API:Fire('Door_Nudge', tableWithDoorSides)
Parameters
| Name | Type | Required | Default | Example |
|---|---|---|---|---|
| tableWithDoorSides | table | ✘ | All Doors | {'Front', 'Rear'} parameter will nudge the front and rear doors. |
Lock Floors
API:Fire('Lock_Floors', tableWithFloors)
Parameters
| Name | Type | Required | Example |
|---|---|---|---|
| tableWithFloors | table | ✔ | {1, 2} parameter will lock the 1st and 2nd floor. |
Unlock Floors
API:Fire('Unlock_Floors', tableWithFloors)
Parameters
| Name | Type | Required | Example |
|---|---|---|---|
| tableWithFloors | table | ✔ | {1, 2} parameter will unlock the 1st and 2nd floor. |
Lock Hall Floors
API:Fire('Lock_Hall_Floors', tableWithFloors)
Parameters
| Name | Type | Required | Example |
|---|---|---|---|
| tableWithFloors | table | ✔ | {1, 2} parameter will lock the 1st and 2nd floor call buttons. |
Unlock Hall Floors
API:Fire('Unlock_Hall_Floors', tableWithFloors)
Parameters
| Name | Type | Required | Example |
|---|---|---|---|
| tableWithFloors | table | ✔ | {1, 2} parameter will unlock the 1st and 2nd floor call buttons. |
Inspection Service
API:Fire('Inspection_Service', enabled)
Parameters
| Name | Type | Required |
|---|---|---|
| enabled | boolean | ✔ |
Inspection Service Common
API:Fire('Inspection_Service_Common', enabled)
Parameters
| Name | Type | Required |
|---|---|---|
| enabled | boolean | ✔ |
Inspection Service Move
API:Fire('Inspection_Service_Move', {direction, speed})
Parameters
| Name | Type | Required | Values |
|---|---|---|---|
| direction | string | ✔ | U, D |
| speed | number | ✔ |
TIP
Use the Inspection Service Stop API to stop the elevator from moving.
Inspection Service Stop
API:Fire('Inspection_Service_Stop', enabled)
Parameters
| Name | Type | Required |
|---|---|---|
| enabled | boolean | ✔ |
Inspection Service Lock
API:Fire('Inspection_Service_Lock', enabled)
Parameters
| Name | Type | Required |
|---|---|---|
| enabled | boolean | ✔ |