Obtain Staff Elevator Ble Broadcast Data

https://api.orbitaiot.com/open/v1/dev/employeeOfflineFloor/{building_id}

 

1. HTTP Request Method and Example

POST /open/v1/dev/employeeOfflineFloor/01
Host: api.orbitaiot.com
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIyMiIsImp0aSI6Ijc1MDc1ZDUxYzVlZTYwMjVjNTcwNGJiY2M3MzIzMjViZmEwMjBlZmYzZjk4.........
Content-Type: application/json

2. Parameter Description

Path Parameter

KeyTypeRequestDescription
building_id
IntYbuilding id

Headers Parameter

KeyTypeRequestVlues
Content-Type
StringYapplication/json
Authorization
StringYBearer [access_token value]


Body Parameter

NameTypeRequiredDescription
timeIntY10-digit timestamp

3. Return Parameters and Examples

Name
Type
Description
code
Int
data
String
message
String
binString


{    
         "code": 0,   
         "message": "",    
         "data": {       

                              "bin": "437e14dbf519191419"  
                         }
}

Remarks: Broadcast the obtained bin as the phone's Bluetooth device name for the elevator to receive.

4. Interface Example