GO
BLE Endpoint
Overview
The GO
endpoint is to command the COP is press the target floor that the robot was to go to.
BLE Request from Robot to COP
The COP will receive a BLE request from the robot. An example request to go to floor 2 is shown below:
{
"code": "GO",
"floor": 2
}
BLE Response from COP to Robot
Success
The COP will respond to the robot with a BLE response. An example response to go to floor 2 is shown below:
{
"code": "INFO",
"value": "OK: Going to floor 2"
}
Failure
Missing floor field:
{
"code": "ERROR",
"value": "Bad Request: Missing floor"
}
Lift Travelling to Destination Floor
Through the journey to the destination floor, the COP will continuously update the robot of the current floor the lift is at every 5 seconds.
An example response for a lift currently at floor 2 is shown below:
{
"code": "CURRENT_FLOOR",
"value": 2
}