Server Invoke API

How to fetch the API

local API = LocationToElevatorModel.Cortex_API

Independent Service

API:Fire('Independent_Service', enabled)

Parameters

NameTypeRequired
enabledboolean

Fire Recall

API:Fire('Fire_Service_Phase_1', enabled, recallFloor)

Parameters

NameTypeRequired
enabledboolean
recallFloornumber

Fire Service Phase 2

API:Fire('Fire_Service_Phase_2', enabled)

Parameters

NameTypeRequired
enabledboolean

Stop

API:Fire('Stop', enabled)

Parameters

NameTypeRequired
enabledboolean

Add Call

API:Fire('Add_Call', floor) -- Car Call

Parameters

NameTypeRequired
floornumber

or

API:Fire('Add_Call', {call = floor, direction = direction}) -- Hall Call

Parameters

NameTypeRequiredValues
floornumber
directionstringU, D

Door Open

API:Fire('Door_Open', tableWithDoorSides)

Parameters

NameTypeRequiredDefaultExample
tableWithDoorSidestableAll Doors{'Front', 'Rear'} parameter will open the front and rear doors.

Door Close

API:Fire('Door_Close', tableWithDoorSides)

Parameters

NameTypeRequiredDefaultExample
tableWithDoorSidestableAll Doors{'Front', 'Rear'} parameter will close the front and rear doors.

Door Nudge

API:Fire('Door_Nudge', tableWithDoorSides)

Parameters

NameTypeRequiredDefaultExample
tableWithDoorSidestableAll Doors{'Front', 'Rear'} parameter will nudge the front and rear doors.

Lock Floors

API:Fire('Lock_Floors', tableWithFloors)

Parameters

NameTypeRequiredExample
tableWithFloorstable{1, 2} parameter will lock the 1st and 2nd floor.

Unlock Floors

API:Fire('Unlock_Floors', tableWithFloors)

Parameters

NameTypeRequiredExample
tableWithFloorstable{1, 2} parameter will unlock the 1st and 2nd floor.

Lock Hall Floors

API:Fire('Lock_Hall_Floors', tableWithFloors)

Parameters

NameTypeRequiredExample
tableWithFloorstable{1, 2} parameter will lock the 1st and 2nd floor call buttons.

Unlock Hall Floors

API:Fire('Unlock_Hall_Floors', tableWithFloors)

Parameters

NameTypeRequiredExample
tableWithFloorstable{1, 2} parameter will unlock the 1st and 2nd floor call buttons.

Inspection Service

API:Fire('Inspection_Service', enabled)

Parameters

NameTypeRequired
enabledboolean

Inspection Service Common

API:Fire('Inspection_Service_Common', enabled)

Parameters

NameTypeRequired
enabledboolean

Inspection Service Move

API:Fire('Inspection_Service_Move', {direction, speed})

Parameters

NameTypeRequiredValues
directionstringU, D
speednumber

TIP

Use the Inspection Service Stop API to stop the elevator from moving.

Inspection Service Stop

API:Fire('Inspection_Service_Stop', enabled)

Parameters

NameTypeRequired
enabledboolean

Inspection Service Lock

API:Fire('Inspection_Service_Lock', enabled)

Parameters

NameTypeRequired
enabledboolean
Last Updated: